rt_gccstream/gcc/testsuite/gcc.dg/cpp/19990413-1.c

14 lines
315 B
C

/* Verify that cpp doesn't screw up the line numbering when a macro argument
extends over multiple lines. */
/* { dg-do compile } */
#define FOO(x) /* nothing */
void
func(void)
{
FOO(i
= 4)
else; /* { dg-error "'else' without a previous 'if'" "error on this line" { target *-*-* } { 12 } } */
}