]> granicus.if.org Git - clang/commitdiff
tests: Make FileCheck version check that preamble isn't longer than we expected.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 22 Jul 2010 02:22:24 +0000 (02:22 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 22 Jul 2010 02:22:24 +0000 (02:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109077 91177308-0d34-0410-b5e6-96231b3b80d8

test/Lexer/preamble.c

index 68b1d21ef0b6df663fc448c97cf1175c7ae040f8..69cdbb7f241e789ee4f7a482e7c0fb4e21472c5d 100644 (file)
@@ -8,7 +8,6 @@
 #endif
 #pragma unknown
 #endif
-
 #ifdef WIBBLE
 #include "honk"
 #else
@@ -21,6 +20,7 @@ int foo();
 // Inputs/preamble.txt, since we diff against it.
 
 // RUN: %clang_cc1 -print-preamble %s > %t
+// RUN: echo END. >> %t
 // RUN: FileCheck < %t %s
 // XFAIL: win32
 
@@ -34,5 +34,4 @@ int foo();
 // CHECK-NEXT: #endif
 // CHECK-NEXT: #pragma unknown
 // CHECK-NEXT: #endif
-
-
+// CHECK-NEXT: END.