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

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

/* Note the trailing whitespace on the first three lines of beta def.  */
/* { dg-warning "separated by space" "space" { target *-*-* } .+3 } */
/* { dg-warning "separated by space" "tab" { target *-*-* } .+3 } */
/* { dg-warning "separated by space" "space and tab" { target *-*-* } .+3 } */
#define beta(a, b, c) \ 
	a, \	
	b, \ 	
	c

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