2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / Wtrigraphs.c
blob5ed6c98ad49ed7a71d1824f70c8bcbd33d457dcc
1 /* { dg-do preprocess } */
2 /* { dg-options "-std=gnu99 -Wtrigraphs -fno-show-column" } */
4 /* Test we don't double warn for trigraphs immediately after preceding
5 text. Source Neil Booth. 22 Nov 2000. */
7 abcdef??< /* { dg-warning "ignored" } */
8 123456??> /* { dg-warning "ignored" } */
9 +??= /* { dg-warning "ignored" } */
11 /* Test we warn of escaped newlines only in comments. Source Neil
12 Booth. 4 May 2003. */
14 /* { dg-bogus "ignored" } Test ??< ??= a few ??/ random things in
15 { dg-warning "ignored" } some ??/
16 { dg-bogus "ignored" } ??< comments. */
18 // { dg-bogus "ignored" } More ??/ comment ??> tests.
20 // { dg-warning "ignored" } Another ??/
21 Test
23 // { dg-warning "ignored" } And another with space after ??/
24 the escape
26 // { dg-bogus "ignored" } A tricky one ??/\