From: Devang Patel Date: Mon, 20 Apr 2009 19:07:55 +0000 (+0000) Subject: Add test case to check line number in debug info. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5994d31a8c613c8902324b5ea2ec09ee7024d14a;p=clang 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 --- 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 " > %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;