aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/cxxcom1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/cpp/cxxcom1.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/cpp/cxxcom1.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/cpp/cxxcom1.c b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/cxxcom1.c
new file mode 100644
index 000000000..8e254ff75
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/cxxcom1.c
@@ -0,0 +1,11 @@
+/* { dg-do preprocess } */
+/* { dg-options "-pedantic -std=gnu89" } */
+
+/* You can't do this in your own code... */
+// C++ comment is not in C89 { dg-warning "style comment|reported only once" "good warning" }
+
+/* ...but we don't bitch about it more than once. */
+// C++ comment is not in C89 { dg-bogus "style comment" "bad warning" }
+
+/* { dg-final { scan-file-not cxxcom1.i "is not in C89" } } */
+