summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/backslash.c
blob: f1b094a0b844d0b040f2d956ad82f14ae10edd8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Test backslash newline with and without trailing spaces.  */

#define alpha(a, b, c) \
	a, \
	b, \
	c

/* Note the trailing whitespace on the next three lines.  */
#define beta(a, b, c) \ 
	a, \	
	b, \ 	
	c

/* { dg-warning "separated by space" "space" { target *-*-* } 9 } */
/* { dg-warning "separated by space" "tab" { target *-*-* } 10 } */
/* { dg-warning "separated by space" "space and tab" { target *-*-* } 11 } */

int x[] = {
   alpha(1, 2, 3),
   beta(4, 5, 6)
};