Skip to content

Commit a7b9698

Browse files
committed
Use FileCheck.
llvm-svn: 164462
1 parent 08f1ebb commit a7b9698

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

clang/test/Driver/clang-translation.c

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
// RUN: %clang -target i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm -funwind-tables -fvisibility=hidden 2> %t.log
2-
// RUN: grep '"-triple" "i386-unknown-unknown"' %t.log
3-
// RUN: grep '"-S"' %t.log
4-
// RUN: grep '"-disable-free"' %t.log
5-
// RUN: grep '"-mrelocation-model" "static"' %t.log
6-
// RUN: grep '"-mdisable-fp-elim"' %t.log
7-
// RUN: grep '"-munwind-tables"' %t.log
8-
// RUN: grep '"-Os"' %t.log
9-
// RUN: grep '"-o" .*clang-translation.*' %t.log
10-
// RUN: grep '"-masm-verbose"' %t.log
11-
// RUN: grep '"-fvisibility" "hidden"' %t.log
1+
// RUN: %clang -target i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm -funwind-tables -fvisibility=hidden 2>&1 | FileCheck -check-prefix=I386 %s
2+
// I386: "-triple" "i386-unknown-unknown"
3+
// I386: "-S"
4+
// I386: "-disable-free"
5+
// I386: "-mrelocation-model" "static"
6+
// I386: "-mdisable-fp-elim"
7+
// I386: "-masm-verbose"
8+
// I386: "-munwind-tables"
9+
// I386: "-Os"
10+
// I386: "-fvisibility"
11+
// I386: "hidden"
12+
// I386: "-o"
13+
// I386: clang-translation
1214
// RUN: %clang -target i386-apple-darwin9 -### -S %s -o %t.s 2> %t.log
1315
// RUN: grep '"-target-cpu" "yonah"' %t.log
1416
// RUN: %clang -target x86_64-apple-darwin9 -### -S %s -o %t.s 2> %t.log

0 commit comments

Comments
 (0)