mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
Add killer test case from the C99 specification.
Happily, this passes now, (since many of the previously added test cases were extracted from this one).
This commit is contained in:
parent
b06096e86e
commit
75ef1c75dd
1 changed files with 17 additions and 0 deletions
17
tests/099-c99-example.c
Normal file
17
tests/099-c99-example.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#define x 3
|
||||
#define f(a) f(x * (a))
|
||||
#undef x
|
||||
#define x 2
|
||||
#define g f
|
||||
#define z z[0]
|
||||
#define h g(~
|
||||
#define m(a) a(w)
|
||||
#define w 0,1
|
||||
#define t(a) a
|
||||
#define p() int
|
||||
#define q(x) x
|
||||
#define r(x,y) x ## y
|
||||
f(y+1) + f(f(z)) % t(t(g)(0) + t)(1);
|
||||
g(x +(3,4)-w) | h 5) & m
|
||||
(f)^m(m);
|
||||
p() i[q()] = { q(1), r(2,3), r(4,), r(,5), r(,)};
|
||||
Loading…
Add table
Reference in a new issue