tinycc/tests
jiang a3fc543459 bug:
----------------------------------------------------------------------
#define hexCh(c (c >= 10 ? 'a' + c - 10 : '0' + c)
  hexCh(c);

out:
jiang@jiang:~/test$ ./tcc -E c4.c
# 1 "c4.c"

(c >= 10 ? 'a' + c - 10 : '0' + c);
---------------------------------------------------------------

#define hexCh(c/3) (c >= 10 ? 'a' + c - 10 : '0' + c)
hexCh(c);

out:
jiang@jiang:~/test$ ./tcc -E c4.c
# 1 "c4.c"

/3) (c >= 10 ? 'a' + c - 10 : '0' + c);
jiang@jiang:~/test$

after patch:

# 1 "c4.c"
c4.c:1: error: may not appear in macro parameter list: "("
jiang@jiang:~/test$

jiang@jiang:~/test$ ./tcc -E c4.c
# 1 "c4.c"
c4.c:1: error: may not appear in macro parameter list: "/"
jiang@jiang:~/test$
2014-06-29 20:35:57 +08:00
..
tests2 bug: 2014-06-29 20:35:57 +08:00
CMakeLists.txt Improved variable length array support. 2013-04-27 22:58:52 +01:00
Makefile build: ignore and properly clean tests/vla_test 2014-04-12 01:10:58 -04:00
abitest.c Make abitest.c have predictable result 2013-11-25 11:25:04 +08:00
asmtest.S i386-asm: support "pause" opcode 2011-02-24 09:38:13 -08:00
boundtest.c x86-64: chkstk, alloca 2009-07-18 22:06:54 +02:00
gcctestsuite.sh Fix bashims in configure and gcctestsuite.sh. 2010-05-26 14:08:29 +02:00
libtcc_test.c tccrun: another incompatible change to the tcc_relocate API 2012-09-01 11:33:34 +02:00
tcctest.c Corrected spelling mistakes in comments and strings 2014-04-07 13:31:00 +02:00
tcctest.py Added cross compilation to CMake build system. 2013-04-25 01:08:18 +01:00
vla_test.c Improved variable length array support. 2013-04-27 22:58:52 +01:00