aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/paste13.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/cpp/paste13.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/cpp/paste13.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/cpp/paste13.c b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/paste13.c
new file mode 100644
index 000000000..f0f4fd894
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/paste13.c
@@ -0,0 +1,12 @@
+/* Copyright (C) 2000 Free Software Foundation, Inc. */
+
+/*
+ { dg-options "-ftrack-macro-expansion=0" }
+ { dg-do preprocess }
+*/
+
+/* This used to be recognized as a comment when lexing after pasting
+ spellings. Neil Booth, 9 Oct 2002. */
+
+#define a /##/=
+a /* { dg-error "valid preprocessing tok" } */