diff options
author | Carl Worth <cworth@cworth.org> | 2010-05-14 10:00:59 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-05-14 11:50:27 -0700 |
commit | db272e6e6fbfe349ea6d9877bb7715ecb2d9f0c1 (patch) | |
tree | 1a361cfc8481cd81309ae5f01ef87d7215acab7b /tests | |
parent | 2be8be0f742a7abf410be8176f6fd6fc49a6b361 (diff) |
Add test for function-like macro invocations with multiple-token arguments.
These are not yet parsed correctly, so these tests fail.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/019-define-func-1-arg-multi.c | 2 | ||||
-rw-r--r-- | tests/020-define-func-2-arg-multi.c | 2 |
2 files changed, 4 insertions, 0 deletions
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 0000000000..c4e62b2550 --- /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 0000000000..253421139d --- /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) |