diff options
| -rw-r--r-- | clang/test/Preprocessor/includeexpand.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/includeexpand.c b/clang/test/Preprocessor/includeexpand.c new file mode 100644 index 00000000000..33637952b79 --- /dev/null +++ b/clang/test/Preprocessor/includeexpand.c @@ -0,0 +1,12 @@ +// RUN: clang %s -fno-caret-diagnostics 2>&1 | grep 'file successfully included' | wc -l | grep 3 + +// XX expands to nothing. +#define XX + +#define FILE "file_to_include.h" +#include XX FILE + +#include FILE + + +#include "file_to_include.h" |

