diff options
author | Neil Booth <neilb@earthling.net> | 2000-11-22 20:37:44 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-11-22 20:37:44 +0000 |
commit | a16f893b63812b02fc92f79a41d04a65a898b16b (patch) | |
tree | f1a22ae748d60b1aea6e014f0ec9393f3f3b26e6 /gcc | |
parent | 4a5b68a2f743ff0742b64c97bb75e6ee0c3c1471 (diff) | |
download | gcc-a16f893b63812b02fc92f79a41d04a65a898b16b.zip gcc-a16f893b63812b02fc92f79a41d04a65a898b16b.tar.gz gcc-a16f893b63812b02fc92f79a41d04a65a898b16b.tar.bz2 |
* gcc.gd/cpp/Wtrigraphs.c: New test.
From-SVN: r37670
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/Wtrigraphs.c | 9 |
2 files changed, 13 insertions, 0 deletions
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 <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 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" } */ |