summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/19990413-1.c
blob: 17d8441e8e6eb184435f88dc01c0fed4a4246b19 (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 "'else' without a previous 'if'" "error on this line" { target *-*-* } { 12 } } */ 
}