mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
Add a couple more tests for chained #define directives.
One with the chained defines in the opposite order, and one with the potential to trigger an infinite-loop bug through mutual recursion. Each of these tests pass already.
This commit is contained in:
parent
c6d5af3351
commit
34db0d332e
2 changed files with 9 additions and 0 deletions
3
tests/003-define-chain-reverse.c
Normal file
3
tests/003-define-chain-reverse.c
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#define bar foo
|
||||
#define foo 1
|
||||
bar
|
||||
6
tests/004-define-recursive.c
Normal file
6
tests/004-define-recursive.c
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#define foo bar
|
||||
#define bar baz
|
||||
#define baz foo
|
||||
foo
|
||||
bar
|
||||
baz
|
||||
Loading…
Add table
Reference in a new issue