diff options
author | Carl Worth <cworth@cworth.org> | 2010-05-27 10:12:33 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-05-27 10:12:33 -0700 |
commit | dd7490093d84ce74a99922c3544b51c3f5d43345 (patch) | |
tree | ecc7396fb756ef5920c5d371da31570bff354b72 /tests | |
parent | 7db2402a8009772a3f10d19cfc7f30be9ee79295 (diff) |
Avoid treating an expanded comma as an argument separator.
That is, a function-like invocation foo(x) is valid as a
single-argument invocation even if 'x' is a macro that expands into a
value with a comma. Add a new COMMA_FINAL token type to handle this,
and add a test for this case, (which passes).
Diffstat (limited to 'tests')
-rw-r--r-- | tests/056-macro-argument-with-comma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/056-macro-argument-with-comma.c b/tests/056-macro-argument-with-comma.c new file mode 100644 index 0000000000..58701d1f25 --- /dev/null +++ b/tests/056-macro-argument-with-comma.c @@ -0,0 +1,4 @@ +#define bar with,embedded,commas +#define function(x) success +#define foo function +foo(bar) |