summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/lineno-dbginfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/lineno-dbginfo.c')
-rw-r--r--test/CodeGen/lineno-dbginfo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/lineno-dbginfo.c b/test/CodeGen/lineno-dbginfo.c
new file mode 100644
index 0000000..fe9e59a
--- /dev/null
+++ b/test/CodeGen/lineno-dbginfo.c
@@ -0,0 +1,5 @@
+// RUN: echo "#include <stdio.h>" > %t.h
+// RUN: clang -S -save-temps -g -include %t.h %s -emit-llvm -o %t.ll
+// RUN: grep "i32 5" %t.ll
+// outer is at line number 5.
+int outer = 42;
OpenPOWER on IntegriCloud