diff options
-rw-r--r-- | test/Lexer/Inputs/preamble.txt | 11 | ||||
-rw-r--r-- | test/Lexer/preamble.c | 16 |
2 files changed, 14 insertions, 13 deletions
diff --git a/test/Lexer/Inputs/preamble.txt b/test/Lexer/Inputs/preamble.txt deleted file mode 100644 index c5f7288fa5..0000000000 --- a/test/Lexer/Inputs/preamble.txt +++ /dev/null @@ -1,11 +0,0 @@ -// Preamble detection test: see below for comments and test commands. - -#include <blah> -#ifndef FOO -#else -#ifdef BAR -#elif WIBBLE -#endif -#pragma unknown -#endif - diff --git a/test/Lexer/preamble.c b/test/Lexer/preamble.c index b1f2fadd1c..c4f9c3ef34 100644 --- a/test/Lexer/preamble.c +++ b/test/Lexer/preamble.c @@ -1,5 +1,5 @@ // Preamble detection test: see below for comments and test commands. - +// #include <blah> #ifndef FOO #else @@ -21,5 +21,17 @@ int foo(); // Inputs/preamble.txt, since we diff against it. // RUN: %clang_cc1 -print-preamble %s > %t -// RUN: diff %t %S/Inputs/preamble.txt +// RUN: FileCheck < %t %s + +// CHECK: // Preamble detection test: see below for comments and test commands. +// CHECK-NEXT: // +// CHECK-NEXT: #include <blah> +// CHECK-NEXT: #ifndef FOO +// CHECK-NEXT: #else +// CHECK-NEXT: #ifdef BAR +// CHECK-NEXT: #elif WIBBLE +// CHECK-NEXT: #endif +// CHECK-NEXT: #pragma unknown +// CHECK-NEXT: #endif + |