* cpplex.c (_cpp_lex_token): Don't warn about directives in macro arguments when looking for the '('. * cppmacro.c (funlike_invocation_p): Set parsing_args to 2 when really parsing arguments; 1 when looking for '('. Always restore the lexer position. * gcc.dg/cpp/cppmacro7.c: New test. From-SVN: r40223
11 lines
216 B
C
11 lines
216 B
C
/* { dg-do preprocess } */
|
|
|
|
/* Test we don't complain about directives in macro expansions when
|
|
looking for the '(' of a function-like macro.
|
|
|
|
Submitter: Neil Booth. 3 Mar 2000. */
|
|
|
|
#define f(x) x
|
|
f
|
|
#define g
|