summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-14 16:58:00 -0700
committerCarl Worth <cworth@cworth.org>2010-05-14 17:03:43 -0700
commit4eb2ccf261f739ad9b91455f28c1dece573a30d6 (patch)
tree97285d9f3ae6fa2bda3b825d1f2fe5c9972a63d3 /tests
parent3596bb149e107ad12df4fee0723caf91819c0758 (diff)
Add test with extra whitespace in macro defintions and invocations.
This whitespace is not dealt with in an elegant way yet so this test does not pass currently.
Diffstat (limited to 'tests')
-rw-r--r--tests/023-define-extra-whitespace.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/023-define-extra-whitespace.c b/tests/023-define-extra-whitespace.c
new file mode 100644
index 0000000000..375355a17d
--- /dev/null
+++ b/tests/023-define-extra-whitespace.c
@@ -0,0 +1,8 @@
+#define noargs() 1
+# define onearg(foo) foo
+ # define twoargs( x , y ) x y
+ # define threeargs( a , b , c ) a b c
+noargs ( )
+ onearg ( 2 )
+ twoargs ( 3 , 4 )
+threeargs ( 5 , 6 , 7 )