summaryrefslogtreecommitdiff
path: root/test/CodeGen/lineno-dbginfo.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-08 22:44:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-08 22:44:26 +0000
commitdb75ad9c47e8ed60f94e3d555098002fabfe1899 (patch)
tree6cc6d356304a4226e272bf9c62f8766e82903ad5 /test/CodeGen/lineno-dbginfo.c
parent9e7d596b5450ac3998b419e44b82a73002936858 (diff)
downloadclang-db75ad9c47e8ed60f94e3d555098002fabfe1899.tar.gz
Fix test, which could miss failures, and also avoid leaving temporary .i file in
source directory. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/lineno-dbginfo.c')
-rw-r--r--test/CodeGen/lineno-dbginfo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/CodeGen/lineno-dbginfo.c b/test/CodeGen/lineno-dbginfo.c
index fe9e59ac2d..12c32ce9dd 100644
--- a/test/CodeGen/lineno-dbginfo.c
+++ b/test/CodeGen/lineno-dbginfo.c
@@ -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;