comparison tests/mpp/README @ 0:13d2b8934445

Import AnaGram (near-)release tree into Mercurial.
author David A. Holland
date Sat, 22 Dec 2007 17:52:45 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:13d2b8934445
1 This test suite is a subset of one put together some years ago, as a
2 regression suite for a different cpp.
3
4 It was never intended to test for standards conformance, although if
5 you look around you'll find that the mpp example gets quite a lot of
6 things wrong.
7
8 Some highlights:
9
10 badinc15.c - crashes
11 badmac{03-06,17,18,20}.c - varargs macros not supported
12 badmac07.c - allows multiple definition of macro arg names
13 badmac08.c - allows arbitrary redefinitions of macros
14 badmac{09,10-14}.c - allows undefining/redefining builtin macros
15 badmac{15,16}.c - allows defining "defined"
16 badmisc{1,2}.c - allows out-of-range line numbers
17 broken01.c - passing empty macro args crashes
18 broken02.c - doesn't allow macro expansions to span lines
19 broken{03-04}.c - even simple recursive macros crash
20 broken05.c - wrong number of macro args causes assertion
21 broken06.c - nested token pasting crashes
22 broken07.c - doesn't allow pasting to an empty token
23 broken08.c - empty macro before directive causes strange error
24 broken{09,10,11}.c - macros expanding to directive-like lines crash
25 broken12.c - weird thing with #undef inside #if 0
26 error1.c - apparently doesn't support #error
27 evil01.c - crashes
28 evil02.c - completely bogus error message
29 includes.c - incorrect macro substitution in final #includes
30 length{01-06}.c - crashes
31 line.c - doesn't support line numbering?
32
33 misc.c
34 - doesn't splice continuation lines correctly in some cases
35 - doesn't handle // comments
36 - doesn't understand digraph tokens
37 - doesn't handle character constants in conditionals properly
38 - after #undef ifndef, #ifdef ifndef gives wrong answer
39 - doesn't handle nested expansion correctly
40 - allows pasting punctuation tokens together