summaryrefslogtreecommitdiff
path: root/test/CodeGen/debug-info-attributed-stmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/debug-info-attributed-stmt.c')
-rw-r--r--test/CodeGen/debug-info-attributed-stmt.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/debug-info-attributed-stmt.c b/test/CodeGen/debug-info-attributed-stmt.c
new file mode 100644
index 0000000000000..b60aaf66ff88e
--- /dev/null
+++ b/test/CodeGen/debug-info-attributed-stmt.c
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -triple x86_64-unk-unk -debug-info-kind=limited -emit-llvm %s -o - | FileCheck %s
+
+void f(_Bool b)
+{
+#pragma nounroll
+ while (b);
+}
+
+// CHECK: br label {{.*}}, !dbg ![[NUM:[0-9]+]]
+// CHECK: br i1 {{.*}}, label {{.*}}, label {{.*}}, !dbg ![[NUM]]
+// CHECK: br label {{.*}}, !dbg ![[NUM]], !llvm.loop
+// CHECK: ![[NUM]] = !DILocation(line: 6,