view gcc/testsuite/gcc.dg/cpp/backslash.c @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* 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)
};