* gcc.gd/cpp/Wtrigraphs.c: New test.
authorNeil Booth <neilb@earthling.net>
Wed, 22 Nov 2000 20:37:44 +0000 (20:37 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 22 Nov 2000 20:37:44 +0000 (20:37 +0000)
From-SVN: r37670

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/Wtrigraphs.c [new file with mode: 0644]

index ff9e323159eae9a010971fee1acc48322e3afffc..198054bc0dea7295ea116392ef798dfc065cb3ab 100644 (file)
@@ -1,3 +1,7 @@
+2000-11-22  Neil Booth  <neilb@earthling.net>
+
+       * gcc.dg/cpp/Wtrigraphs.c: New test.
+
 2000-11-22  Loren J. Rittle  <ljrittle@acm.org>
 
         * g++.old-deja/g++.robertl/eb39.C: Don't include libio.h.
diff --git a/gcc/testsuite/gcc.dg/cpp/Wtrigraphs.c b/gcc/testsuite/gcc.dg/cpp/Wtrigraphs.c
new file mode 100644 (file)
index 0000000..2dee1e5
--- /dev/null
@@ -0,0 +1,9 @@
+/* { dg-do preprocess } */
+/* { dg-options "-Wtrigraphs -fno-show-column" } */
+
+/* Test we don't double warn for trigraphs immediately after preceding
+   text.  Source Neil Booth.  22 Nov 2000.  */
+
+abcdef??<                      /* { dg-warning "ignored" } */
+123456??>                      /* { dg-warning "ignored" } */
++??=                           /* { dg-warning "ignored" } */