Debian Codegraph @

gcc/testsuite/gcc.dg/cpp/Wtrigraphs.c

raw
1 /* { dg-do preprocess } */
2 /* { dg-options "-std=gnu99 -Wtrigraphs" } */
3
4 /* Test we don't double warn for trigraphs immediately after preceding
5 text. Source Neil Booth. 22 Nov 2000. */
6
7 abcdef??< /* { dg-warning "ignored" } */
8 123456??> /* { dg-warning "ignored" } */
9 +??= /* { dg-warning "ignored" } */
10
11 /* Test we warn of escaped newlines only in comments. Source Neil
12 Booth. 4 May 2003. */
13
14 /* { dg-bogus "ignored" } Test ??< ??= a few ??/ random things in
15 { dg-warning "ignored" } some ??/
16 { dg-bogus "ignored" } ??< comments. */
17
18 // { dg-bogus "ignored" } More ??/ comment ??> tests.
19
20 // { dg-warning "ignored" } Another ??/
21 Test
22
23 // { dg-warning "ignored" } And another with space after ??/
24 the escape
25
26 // { dg-bogus "ignored" } A tricky one ??/\
27