Fix test, which could miss failures, and also avoid leaving temporary .i file in

source directory.

llvm-svn: 73094
This commit is contained in:
Daniel Dunbar 2009-06-08 22:44:26 +00:00
parent eed62b7c4b
commit fd262b4a62
1 changed files with 4 additions and 3 deletions

View 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;