From: Carl Worth Date: Fri, 14 May 2010 17:00:59 +0000 (-0700) Subject: Add test for function-like macro invocations with multiple-token arguments. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db272e6e6fbfe349ea6d9877bb7715ecb2d9f0c1;p=mesa.git Add test for function-like macro invocations with multiple-token arguments. These are not yet parsed correctly, so these tests fail. --- diff --git a/tests/019-define-func-1-arg-multi.c b/tests/019-define-func-1-arg-multi.c new file mode 100644 index 00000000000..c4e62b25508 --- /dev/null +++ b/tests/019-define-func-1-arg-multi.c @@ -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 index 00000000000..253421139d4 --- /dev/null +++ b/tests/020-define-func-2-arg-multi.c @@ -0,0 +1,2 @@ +#define foo(x,y) x, two fish, red fish, y +foo(one fish, blue fish)