From: Zack Weinberg Date: Tue, 13 Apr 1999 23:09:35 +0000 (+0000) Subject: Test for cpp line numbering bug X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8b7e1861e18c1234e6ae99c250e244492ab7a1a;p=gcc.git Test for cpp line numbering bug From-SVN: r26431 --- diff --git a/gcc/testsuite/gcc.dg/990413-1.c b/gcc/testsuite/gcc.dg/990413-1.c new file mode 100644 index 00000000000..383cd3949b1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/990413-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 "syntax error" "error on this line" { target native } { 12 } } */ +}