mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
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.
This commit is contained in:
parent
3596bb149e
commit
4eb2ccf261
1 changed files with 8 additions and 0 deletions
8
tests/023-define-extra-whitespace.c
Normal file
8
tests/023-define-extra-whitespace.c
Normal file
|
|
@ -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 )
|
||||
Loading…
Add table
Reference in a new issue