Add test for composed invocation of function-like macros.
authorCarl Worth <cworth@cworth.org>
Fri, 14 May 2010 17:01:44 +0000 (10:01 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 14 May 2010 18:50:33 +0000 (11:50 -0700)
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.

tests/021-define-func-compose.c [new file with mode: 0644]

diff --git a/tests/021-define-func-compose.c b/tests/021-define-func-compose.c
new file mode 100644 (file)
index 0000000..21ddd0e
--- /dev/null
@@ -0,0 +1,3 @@
+#define bar(x) (1+(x))
+#define foo(y) (2*(y))
+foo(bar(3))