OSDN Git Service

Add test invoking a macro with an argument containing (non-macro) parentheses.
authorCarl Worth <cworth@cworth.org>
Fri, 14 May 2010 23:51:54 +0000 (16:51 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 14 May 2010 23:51:54 +0000 (16:51 -0700)
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).

tests/022-define-func-arg-with-parens.c [new file with mode: 0644]

diff --git a/tests/022-define-func-arg-with-parens.c b/tests/022-define-func-arg-with-parens.c
new file mode 100644 (file)
index 0000000..c20d73a
--- /dev/null
@@ -0,0 +1,2 @@
+#define foo(x) (x)
+foo(argument(including parens)for the win)