summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-line.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/debug-info-line.c')
-rw-r--r--clang/test/CodeGen/debug-info-line.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/debug-info-line.c b/clang/test/CodeGen/debug-info-line.c
new file mode 100644
index 00000000000..2e044d2ab37
--- /dev/null
+++ b/clang/test/CodeGen/debug-info-line.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -w -gline-tables-only -fexceptions -fcxx-exceptions -S -emit-llvm %s -o - | FileCheck %s
+
+int f1(int a, int b) {
+ // CHECK: icmp {{.*}}, !dbg [[DBG_F1:!.*]]
+#line 100
+ return a //
+ && //
+ b;
+}
+
+// CHECK: [[DBG_F1]] = !MDLocation(line: 100,
OpenPOWER on IntegriCloud