summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/Preprocessor/paste_bad.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/paste_bad.c b/clang/test/Preprocessor/paste_bad.c
new file mode 100644
index 00000000000..8e80c9b2e8b
--- /dev/null
+++ b/clang/test/Preprocessor/paste_bad.c
@@ -0,0 +1,6 @@
+// RUN: not clang -E %s
+// GCC PR 20077
+
+#define a a ## ##
+#define a() a ## ##
+
OpenPOWER on IntegriCloud