aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cpp/Wtrailing-whitespace-3.c
blob: 1d42776c76b0e65e4fa344039390af435fbdc30e (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
38
39
40
41
42
43
/* { dg-do compile { target { c || c++11 } } } */
/* { dg-options "-Wtrailing-whitespace=any" } */

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 } */
 
/* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */

/* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
 
/* { 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 
/* { dg-warning "trailing whitespace" "" { target *-*-* } .-1 } */
/* This is a comment with trailing whitespace 
*/
/* { dg-warning "trailing whitespace" "" { target *-*-* } .-2 } */
/* { dg-warning "trailing whitespace" "" { target *-*-* } .+1 } */