]> granicus.if.org Git - clang/commitdiff
Work around FileCheck -NOT restriction.
authorDaniel Dunbar <daniel@zuster.org>
Sun, 20 Sep 2009 23:35:52 +0000 (23:35 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 20 Sep 2009 23:35:52 +0000 (23:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82417 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/ast.c

index b5d342c2665dc6eb84136543c722d78f69ace4a4..814b597bb19f331bae305a158fbd5a909836bad9 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: clang -ccc-host-triple i386-unknown-unknown -ccc-print-phases -emit-ast %s 2> %t &&
+// RUN: echo 'END' >> %t &&
 // RUN: FileCheck -check-prefix EMIT-AST-PHASES -input-file %t %s &&
 
 // EMIT-AST-PHASES: 0: input,
@@ -6,9 +7,11 @@
 // EMIT-AST-PHASES: 1: preprocessor, {0}, cpp-output
 // EMIT-AST-PHASES: 2: compiler, {1}, ast
 // EMIT-AST-PHASES-NOT: 3:
+// EMIT-AST-PHASES: END
 
 // RUN: touch %t.ast &&
 // RUN: clang -ccc-host-triple i386-unknown-unknown -ccc-print-phases -c %t.ast 2> %t &&
+// RUN: echo 'END' >> %t &&
 // RUN: FileCheck -check-prefix COMPILE-AST-PHASES -input-file %t %s
 
 // COMPILE-AST-PHASES: 0: input,
@@ -16,6 +19,7 @@
 // COMPILE-AST-PHASES: 1: compiler, {0}, assembler
 // COMPILE-AST-PHASES: 2: assembler, {1}, object
 // COMPILE-AST-PHASES-NOT: 3:
+// COMPILE-AST-PHASES: END
 
 // FIXME: There is a problem with compiling AST's in that the input language is
 // not availabe for use by other tools (for example, to automatically add