Debian Codegraph @

gcc/testsuite/c-c++-common/cpp/Wtrailing-whitespace-3.c

raw
1 /* { dg-do compile { target { c || c++11 } } } */
2 /* { dg-options "-Wtrailing-whitespace=any" } */
3
4 int i;
5 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
6 int j;
7 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
8 int \
9 k \
10 ;
11 /* { dg-warning "backslash and newline separated by space" "" { target *-*-* } .-3 } */
12 /* { dg-warning "backslash and newline separated by space" "" { target *-*-* } .-3 } */
13 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-3 } */
14
15 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
16
17 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
18
19 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
20
21 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
22
23 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
24
25 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
26 const char *p = R"*|*(
27
28
29 .
30 )*|*";
31 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
32 // This is a comment with trailing whitespace
33 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
34 /* This is a comment with trailing whitespace
35 */
36 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-2 } */
37 // This is a comment with trailing whitespace
38 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
39 /* This is a comment with trailing whitespace
40 */
41 /* { dg-warning "trailing whitespace" "" { target *-*-* } .-2 } */
42 /* { dg-warning "trailing whitespace" "" { target *-*-* } .+1 } */
43