summaryrefslogtreecommitdiff
path: root/tests/022-define-func-arg-with-parens.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-14 16:51:54 -0700
committerCarl Worth <cworth@cworth.org>2010-05-14 16:51:54 -0700
commitf6ae186cfd2c7006656ac55446247b569b92a721 (patch)
tree94101c5a6d15ca665f5119152829553901d39d02 /tests/022-define-func-arg-with-parens.c
parent38bd27b444f610904320b5aa9d37e43be9164697 (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.c2
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)