source: mainline/uspace/app/pcc/cc/cpp/tests/test2@ a7de7182

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since a7de7182 was a7de7182, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 15 years ago

Added pcc source tree (contents of pcc-1.0.0.tgz)

  • Property mode set to 100644
File size: 575 bytes
Line 
1#define x 3
2#define f(a) f(x * (a))
3#undef x
4#define x 2
5#define g f
6#define z z[0]
7#define h g(~
8#define m(a) a(w)
9#define w 0,1
10#define t(a) a
11#define p() int
12#define q(x) x
13#define r(x,y) x ## y
14#define str(x) # x
15f(y+1) + f(f(z)) % t(t(g)(0) + t)(1);
16g(x+(3,4)-w) | h 5) & m
17(f)^m(m);
18p() i[q()] = { q(1), r(2,3), r(4,), r(,5), r(,) };
19char c[2][6] = { str(hello), str() };
20/*
21 * f(2 * (y+1)) + f(2 * (f(2 * (z[0])))) % f(2 * (0)) + t(1);
22 * f(2 * (2+(3,4)-0,1)) | f(2 * (~ 5)) & f(2 * (0,1))^m(0,1);
23 * int i[] = { 1, 23, 4, 5, };
24 * char c[2][6] = { "hello", "" };
25 */
Note: See TracBrowser for help on using the repository browser.