summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/stringize_skipped.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/stringize_skipped.c')
-rw-r--r--clang/test/Preprocessor/stringize_skipped.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/stringize_skipped.c b/clang/test/Preprocessor/stringize_skipped.c
new file mode 100644
index 00000000000..e9395fbbb4b
--- /dev/null
+++ b/clang/test/Preprocessor/stringize_skipped.c
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+// Ensure we see the error from PP and do not see errors from the parser.
+
+// expected-error@+1{{'#' is not followed by a macro parameter}}
+#define INVALID() #B 10+10
OpenPOWER on IntegriCloud