diff options
Diffstat (limited to 'test/Preprocessor/include-directive1.c')
-rw-r--r-- | test/Preprocessor/include-directive1.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Preprocessor/include-directive1.c b/test/Preprocessor/include-directive1.c new file mode 100644 index 000000000000..66f70fb3a9e5 --- /dev/null +++ b/test/Preprocessor/include-directive1.c @@ -0,0 +1,14 @@ +// RUN: clang-cc -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 3 + +// XX expands to nothing. +#define XX + +// expand macros to get to file to include +#define FILE "file_to_include.h" +#include XX FILE + +#include FILE + +// normal include +#include "file_to_include.h" + |