summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/macro_expandloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/macro_expandloc.c')
-rw-r--r--test/Preprocessor/macro_expandloc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_expandloc.c b/test/Preprocessor/macro_expandloc.c
new file mode 100644
index 0000000..ce1efd2
--- /dev/null
+++ b/test/Preprocessor/macro_expandloc.c
@@ -0,0 +1,6 @@
+// RUN: clang-cc %s -E 2>&1 | grep '#include'
+#define FOO 1
+
+// The error message should be on the #include line, not the 1.
+#include FOO
+
OpenPOWER on IntegriCloud