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