diff options
Diffstat (limited to 'test/Preprocessor/macro_expandloc.c')
-rw-r--r-- | test/Preprocessor/macro_expandloc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/Preprocessor/macro_expandloc.c b/test/Preprocessor/macro_expandloc.c index f466013..3b9eb5f 100644 --- a/test/Preprocessor/macro_expandloc.c +++ b/test/Preprocessor/macro_expandloc.c @@ -1,6 +1,13 @@ -// RUN: %clang_cc1 %s -E 2>&1 | grep '#include' +// RUN: %clang_cc1 -E -verify %s #define FOO 1 // The error message should be on the #include line, not the 1. + +// expected-error@+1 {{expected "FILENAME" or <FILENAME>}} #include FOO +#define BAR BAZ + +// expected-error@+1 {{expected "FILENAME" or <FILENAME>}} +#include BAR + |