From: Carl Worth Date: Fri, 14 May 2010 23:51:54 +0000 (-0700) Subject: Add test invoking a macro with an argument containing (non-macro) parentheses. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6ae186cfd2c7006656ac55446247b569b92a721;p=mesa.git 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). --- 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 00000000000..c20d73a4a28 --- /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)