8sa1-gcc/gcc/testsuite/gcc.dg/cpp/macro7.c
Neil Booth e8408f251a cpplex.c (_cpp_lex_token): Don't warn about directives in macro arguments when looking for the '('.
* 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
2001-03-03 22:14:08 +00:00

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