Fix Ada runtime library breakage on Solaris
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / Wtrigraphs.c
blobd4be2040c18328822ccd06476ff124c4c8b19282
1 /* { dg-do preprocess } */
2 /* { dg-options "-std=gnu99 -Wtrigraphs" } */
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 ??/\