aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/19990413-1.c
blob: 9abddb942fd3a1d52d30810ac75b75b4bed145bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* 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 "parse error" "error on this line" { target *-*-* } { 12 } } */ 
}