diff options
author | Devang Patel <dpatel@apple.com> | 2009-04-20 19:07:55 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-04-20 19:07:55 +0000 |
commit | 5994d31a8c613c8902324b5ea2ec09ee7024d14a (patch) | |
tree | 8447ecc051ff9476ce6046a2a60a74327d32bc42 | |
parent | 24022803af76734534d7b506137142d8df5b457d (diff) |
Add test case to check line number in debug info.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69617 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/lineno-dbginfo.c | 5 |
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 0000000000..fe9e59ac2d --- /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; |