Add test for function-like macro invocations with multiple-token arguments.
authorCarl Worth <cworth@cworth.org>
Fri, 14 May 2010 17:00:59 +0000 (10:00 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 14 May 2010 18:50:27 +0000 (11:50 -0700)
These are not yet parsed correctly, so these tests fail.

tests/019-define-func-1-arg-multi.c [new file with mode: 0644]
tests/020-define-func-2-arg-multi.c [new file with mode: 0644]

diff --git a/tests/019-define-func-1-arg-multi.c b/tests/019-define-func-1-arg-multi.c
new file mode 100644 (file)
index 0000000..c4e62b2
--- /dev/null
@@ -0,0 +1,2 @@
+#define foo(x) (x)
+foo(this is more than one word)
diff --git a/tests/020-define-func-2-arg-multi.c b/tests/020-define-func-2-arg-multi.c
new file mode 100644 (file)
index 0000000..2534211
--- /dev/null
@@ -0,0 +1,2 @@
+#define foo(x,y) x, two fish, red fish, y
+foo(one fish, blue fish)