summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/Wtrigraphs-2.c
blob: 8d61f2841f0fd3a1a48d80919d6c3baf238ae85d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do preprocess } */
/* { dg-options "-std=c99 -Wtrigraphs" } */

/* Test warnings for trigraphs in comments, with trigraphs enabled.
   Neil Booth.  4 May 2003.  */

/* { dg-bogus "converted" } Test ??< ??= a few ??/ random things in
   { dg-warning "converted" } some ??/
   { dg-bogus "converted" } ??< comments.  */

// { dg-bogus "converted" } More ??/ comment ??> tests.

// { dg-warning "converted" } Another ??/
   Test

// { dg-warning "converted" } And another with space after ??/  
   the escape

// { dg-bogus "converted" } A tricky one ??/\