tccpp: Fix macro_is_equal
When tokens in macro definitions need cstr_buf inside get_tok_str, the second might overwrite the first (happens when tokens are multi-character non-identifiers, see testcase) in macro_is_equal, failing to diagnose a difference. Use a real local buffer.
This commit is contained in:
3
tests/pp/16.c
Normal file
3
tests/pp/16.c
Normal file
@ -0,0 +1,3 @@
|
||||
/* The following should warn */
|
||||
#define A ...
|
||||
#define A <<=
|
||||
Reference in New Issue
Block a user