summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-04-20 19:07:55 +0000
committerDevang Patel <dpatel@apple.com>2009-04-20 19:07:55 +0000
commit45dfbd16b052347a8b433f02f436a41529086a5a (patch)
treee761c13c8bc602ce0803e464913e3d3c01db0700
parent35cf42e55e4a50758c41ab059c3a041db9fbe93d (diff)
downloadbcm5719-llvm-45dfbd16b052347a8b433f02f436a41529086a5a.tar.gz
bcm5719-llvm-45dfbd16b052347a8b433f02f436a41529086a5a.zip
Add test case to check line number in debug info.
llvm-svn: 69617
-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 00000000000..fe9e59ac2d7
--- /dev/null
+++ b/clang/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