]> granicus.if.org Git - clang/commitdiff
Fix test, which could miss failures, and also avoid leaving temporary .i file in
authorDaniel Dunbar <daniel@zuster.org>
Mon, 8 Jun 2009 22:44:26 +0000 (22:44 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 8 Jun 2009 22:44:26 +0000 (22:44 +0000)
source directory.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73094 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/lineno-dbginfo.c

index fe9e59ac2d709851274ac7855ea10015211e1656..12c32ce9dd4b011d9e9fe5e987c2ab0c1061ecb5 100644 (file)
@@ -1,5 +1,6 @@
-// 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
+// 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 &&
+// RUN: rm -f lineno-dbginfo.i
 // outer is at line number 5.
 int outer = 42;