mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 23:09:05 +02:00
Add tests defining a macro to be a literal and another macro.
These 3 new tests are modeled after 3 existing tests but made slightly more complex since now instead of definining a new macro to be an existing macro, we define it to be replaced with two tokens, (one a literal, and one an existing macro). These tests all fail currently because the replacement lookup is currently happening on the basis of the entire replacement string rather than on a list of tokens.
This commit is contained in:
parent
34db0d332e
commit
df2ab5b992
3 changed files with 12 additions and 0 deletions
3
tests/005-define-composite-chain.c
Normal file
3
tests/005-define-composite-chain.c
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#define foo 1
|
||||
#define bar a foo
|
||||
bar
|
||||
3
tests/006-define-composite-chain-reverse.c
Normal file
3
tests/006-define-composite-chain-reverse.c
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#define bar a foo
|
||||
#define foo 1
|
||||
bar
|
||||
6
tests/007-define-composite-recursive.c
Normal file
6
tests/007-define-composite-recursive.c
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#define foo a bar
|
||||
#define bar b baz
|
||||
#define baz c foo
|
||||
foo
|
||||
bar
|
||||
baz
|
||||
Loading…
Add table
Reference in a new issue