aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-C3.c13
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1ffbb15..fd40483 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-16 Kai Tietz <kai.tietz@onevision.com>
+
+ PR preprocessor/17349
+ * gcc.dg/cpp/cmdlne-C3.c: New.
+
2010-11-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44545
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-C3.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-C3.c
new file mode 100644
index 0000000..86a9422
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-C3.c
@@ -0,0 +1,13 @@
+/* { dg-do preprocess } */
+/* { dg-options "-C -P" } */
+
+#define macro(X) X
+
+macro(
+// Comment1
+x
+// Comment2
+);
+
+/* { dg-final { scan-file cmdlne-C3.i "\\\*\\\/ x \\\/\\\*" } } */
+