summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/lineno-dbginfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/lineno-dbginfo.c')
-rw-r--r--clang/test/CodeGen/lineno-dbginfo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGen/lineno-dbginfo.c b/clang/test/CodeGen/lineno-dbginfo.c
new file mode 100644
index 0000000..72fa337
--- /dev/null
+++ b/clang/test/CodeGen/lineno-dbginfo.c
@@ -0,0 +1,5 @@
+// RUN: echo "#include <stddef.h>" > %t.h
+// RUN: %clang -S -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;