diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/19990413-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/19990413-1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/19990413-1.c b/gcc/testsuite/gcc.dg/cpp/19990413-1.c new file mode 100644 index 000000000..17d8441e8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/19990413-1.c @@ -0,0 +1,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 } } */ +} |