From a16f893b63812b02fc92f79a41d04a65a898b16b Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Wed, 22 Nov 2000 20:37:44 +0000 Subject: * gcc.gd/cpp/Wtrigraphs.c: New test. From-SVN: r37670 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/cpp/Wtrigraphs.c | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/cpp/Wtrigraphs.c (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ff9e323..198054b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-11-22 Neil Booth + + * gcc.dg/cpp/Wtrigraphs.c: New test. + 2000-11-22 Loren J. Rittle * 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 index 0000000..2dee1e5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/Wtrigraphs.c @@ -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" } */ -- cgit v1.1