diff options
author | Carl Worth <cworth@cworth.org> | 2010-05-14 16:51:54 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-05-14 16:51:54 -0700 |
commit | f6ae186cfd2c7006656ac55446247b569b92a721 (patch) | |
tree | 94101c5a6d15ca665f5119152829553901d39d02 /tests/022-define-func-arg-with-parens.c | |
parent | 38bd27b444f610904320b5aa9d37e43be9164697 (diff) |
Add test invoking a macro with an argument containing (non-macro) parentheses.
The macro invocation is defined to consume all text between a set of
matched parentheses. We previously tested for inner parentheses from a
nested function-like macro invocation. Here we test for inner
parentheses occuring on their own, (not part of another macro
invocation).
Diffstat (limited to 'tests/022-define-func-arg-with-parens.c')
-rw-r--r-- | tests/022-define-func-arg-with-parens.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/022-define-func-arg-with-parens.c b/tests/022-define-func-arg-with-parens.c new file mode 100644 index 0000000..c20d73a --- /dev/null +++ b/tests/022-define-func-arg-with-parens.c @@ -0,0 +1,2 @@ +#define foo(x) (x) +foo(argument(including parens)for the win) |