summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-19 07:49:47 -0700
committerCarl Worth <cworth@cworth.org>2010-05-19 07:49:47 -0700
commit59ca98990f814926d716a13b0201c94945133824 (patch)
tree74406859f754d1ad185b3e6dbbd52a047c41b1d7 /tests
parent69f390d6096c597dbe63f20fd02b2312da211de8 (diff)
Fix bug as in previous fix, but with multi-token argument.
The previous fix added FUNC_MACRO to a production one higher in teh grammar than it should have. So it prevented a FUNC_MACRO from appearing as part of a mutli-token argument rather than just alone as an argument. Fix this (and add a test).
Diffstat (limited to 'tests')
-rw-r--r--tests/035-define-func-self-compose-non-func-multi-token-argument.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/035-define-func-self-compose-non-func-multi-token-argument.c b/tests/035-define-func-self-compose-non-func-multi-token-argument.c
new file mode 100644
index 0000000000..9955219470
--- /dev/null
+++ b/tests/035-define-func-self-compose-non-func-multi-token-argument.c
@@ -0,0 +1,2 @@
+#define foo(bar) bar
+foo(1 + foo)