diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-08 22:44:26 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-08 22:44:26 +0000 |
commit | db75ad9c47e8ed60f94e3d555098002fabfe1899 (patch) | |
tree | 6cc6d356304a4226e272bf9c62f8766e82903ad5 | |
parent | 9e7d596b5450ac3998b419e44b82a73002936858 (diff) |
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
-rw-r--r-- | test/CodeGen/lineno-dbginfo.c | 7 |
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; |