From: Carl Worth Date: Fri, 14 May 2010 23:58:00 +0000 (-0700) Subject: Add test with extra whitespace in macro defintions and invocations. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4eb2ccf261f739ad9b91455f28c1dece573a30d6;p=mesa.git 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. --- diff --git a/tests/023-define-extra-whitespace.c b/tests/023-define-extra-whitespace.c new file mode 100644 index 00000000000..375355a17d9 --- /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 )