mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 05:20:09 +01:00
Add tests for the structure of function-like macros.
These test only the most basic aspect of parsing of function-like macros. Specifically, none of the definitions of these function like macros use the arguments of the function. No function-like macros are implemented yet, so all of these fail for now.
This commit is contained in:
parent
9f62a7e9e2
commit
4abc3dec72
4 changed files with 8 additions and 0 deletions
2
tests/011-define-func-empty.c
Normal file
2
tests/011-define-func-empty.c
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define foo()
|
||||
foo()
|
||||
2
tests/012-define-func-no-args.c
Normal file
2
tests/012-define-func-no-args.c
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define foo() bar
|
||||
foo()
|
||||
2
tests/013-define-func-1-arg-unused.c
Normal file
2
tests/013-define-func-1-arg-unused.c
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define foo(x) 1
|
||||
foo(bar)
|
||||
2
tests/014-define-func-2-arg-unused.c
Normal file
2
tests/014-define-func-2-arg-unused.c
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define foo(x,y) 1
|
||||
foo(bar,baz)
|
||||
Loading…
Add table
Reference in a new issue