source: mainline/uspace/app/pcc/cc/cpp/tests/test3@ 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@…>, 14 years ago

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

  • Property mode set to 100644
File size: 412 bytes
Line 
1#define str(s) # s
2#define xstr(s) str(s)
3#define debug(s, t) printf("x" # s "= %d, x" # t "= %s", \
4 x ## s, x ## t)
5#define INCFILE(n) vers ## n
6#define glue(a, b) a ## b
7#define xglue(a, b) glue(a, b)
8#define HIGHLOW "hello"
9#define LOW LOW ", world"
10debug(1, 2);
11fputs(str(strncmp("abc\0d", "abc", '\4') // this goes away
12 == 0) str(: @\n), s);
13\#include xstr(INCFILE(2).h)
14glue(HIGH, LOW);
15xglue(HIGH, LOW)
Note: See TracBrowser for help on using the repository browser.