Add three more tests cases recently added to the take-2 branch.

The 071-punctuator test is failing only trivially (whitespace change only).

And the 072-token-pasting-same-line.c test passes just fine here, (more
evidence perhaps that the approach in take-2 is more trouble than it's
worth?).

The 099-c99-example test case is the inspiration for much of the rest
of the test suite. It amazingly passes on the take-2 branch, but
doesn't pass here yet.
This commit is contained in:
Carl Worth 2010-05-29 06:01:32 -07:00
parent 614a9aece0
commit ae3fb09cd2
3 changed files with 20 additions and 0 deletions

1
tests/071-punctuator.c Normal file
View file

@ -0,0 +1 @@
a = b

View file

@ -0,0 +1,2 @@
#define paste(x) success_ ## x
paste(1) paste(2) paste(3)

17
tests/099-c99-example.c Normal file
View 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(,)};