about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-02-25 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-02-26 21:45:34 +0100
commit0c51f2f5a580a7e239accd0cc5f3da2e8cdf6f8c (patch)
tree73308eed686a988d6628dc64eb0b7e82bb9a4916 /src/test/codegen
parente1a54725081227a3866669c167bee4c0559f5362 (diff)
downloadrust-0c51f2f5a580a7e239accd0cc5f3da2e8cdf6f8c.tar.gz
rust-0c51f2f5a580a7e239accd0cc5f3da2e8cdf6f8c.zip
Use byte offsets when emitting debuginfo columns
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/debug-column.rs14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/test/codegen/debug-column.rs b/src/test/codegen/debug-column.rs
index 4a7b4176f2c..f348c48566d 100644
--- a/src/test/codegen/debug-column.rs
+++ b/src/test/codegen/debug-column.rs
@@ -1,16 +1,24 @@
-// Verify that emitted debuginfo column nubmers are 1-based. Regression test for issue #65437.
+// Verify that debuginfo column nubmers are 1-based byte offsets.
 //
 // ignore-windows
 // compile-flags: -C debuginfo=2
 
 fn main() {
     unsafe {
-        // CHECK: call void @giraffe(), !dbg [[DBG:!.*]]
-        // CHECK: [[DBG]] = !DILocation(line: 10, column: 9
+        // Column numbers are 1-based. Regression test for #65437.
+        // CHECK: call void @giraffe(), !dbg [[A:!.*]]
         giraffe();
+
+        // Column numbers use byte offests. Regression test for #67360
+        // CHECK: call void @turtle(), !dbg [[B:!.*]]
+/* ż */ turtle();
+
+        // CHECK: [[A]] = !DILocation(line: 10, column: 9,
+        // CHECK: [[B]] = !DILocation(line: 14, column: 10,
     }
 }
 
 extern {
     fn giraffe();
+    fn turtle();
 }