OSDN Git Service

Add test with extra whitespace in macro defintions and invocations.
authorCarl Worth <cworth@cworth.org>
Fri, 14 May 2010 23:58:00 +0000 (16:58 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 15 May 2010 00:03:43 +0000 (17:03 -0700)
This whitespace is not dealt with in an elegant way yet so this test
does not pass currently.

tests/023-define-extra-whitespace.c [new file with mode: 0644]

diff --git a/tests/023-define-extra-whitespace.c b/tests/023-define-extra-whitespace.c
new file mode 100644 (file)
index 0000000..375355a
--- /dev/null
@@ -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 )