diff options
Diffstat (limited to 'test/Lexer/preamble.c')
-rw-r--r-- | test/Lexer/preamble.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/Lexer/preamble.c b/test/Lexer/preamble.c index 5b2739abefcc..762271f2e3f1 100644 --- a/test/Lexer/preamble.c +++ b/test/Lexer/preamble.c @@ -9,15 +9,12 @@ #pragma unknown #endif #ifdef WIBBLE -#include "honk" -#else -int foo(); +#include "foo" +int bar; #endif // This test checks for detection of the preamble of a file, which -// includes all of the starting comments and #includes. Note that any -// changes to the preamble part of this file must be mirrored in -// Inputs/preamble.txt, since we diff against it. +// includes all of the starting comments and #includes. // RUN: %clang_cc1 -print-preamble %s > %t // RUN: echo END. >> %t @@ -33,4 +30,6 @@ int foo(); // CHECK-NEXT: #endif // CHECK-NEXT: #pragma unknown // CHECK-NEXT: #endif +// CHECK-NEXT: #ifdef WIBBLE +// CHECK-NEXT: #include "foo" // CHECK-NEXT: END. |