Debian Codegraph @

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

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