summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-14 10:01:44 -0700
committerCarl Worth <cworth@cworth.org>2010-05-14 11:50:33 -0700
commit92e7bf0f50ff673b7441b2f2be9ef99a4af8cae4 (patch)
tree0d25d63e211f801480643b15a96879be2f6d5112 /tests
parentac070e8bf5005151dd702f2cd3fbfb2d1eaaf00d (diff)
Add test for composed invocation of function-like macros.
This is a case like "foo(bar(x))" where both foo and bar are defined function-like macros. This is not yet parsed correctly so this test fails.
Diffstat (limited to 'tests')
-rw-r--r--tests/021-define-func-compose.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/021-define-func-compose.c b/tests/021-define-func-compose.c
new file mode 100644
index 0000000000..21ddd0e65f
--- /dev/null
+++ b/tests/021-define-func-compose.c
@@ -0,0 +1,3 @@
+#define bar(x) (1+(x))
+#define foo(y) (2*(y))
+foo(bar(3))