From 5994d31a8c613c8902324b5ea2ec09ee7024d14a Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 20 Apr 2009 19:07:55 +0000 Subject: [PATCH] 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 --- test/CodeGen/lineno-dbginfo.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/CodeGen/lineno-dbginfo.c 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; -- 2.50.1