Mercurial > ~dholland > hg > tradcpp > index.cgi
changeset 119:4f493fb35821
Test empty arguments.
author | David A. Holland |
---|---|
date | Tue, 11 Jun 2013 14:12:54 -0400 |
parents | c13f36775fe8 |
children | 66c7c05d6232 |
files | tests/Makefile tests/t27.c tests/t27.good |
diffstat | 3 files changed, 54 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/Makefile Tue Jun 11 14:12:27 2013 -0400 +++ b/tests/Makefile Tue Jun 11 14:12:54 2013 -0400 @@ -3,7 +3,7 @@ TESTS=\ t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 t11 t12 t13 t14 t15 t16 \ - t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 + t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 all: run-tests .WAIT show-diffs
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/t27.c Tue Jun 11 14:12:54 2013 -0400 @@ -0,0 +1,29 @@ +1. +#define A(a) a +A(); + +2. +#define B(a, b) (a,b) +B(a, ); +B(, b); +B( , ); +B(a,); +B(,b); +B(,); + +3. +#define C(a, b, c) (a,b,c) +C(a, b, ); +C(a, , c); +C(, , c); +C(a, , ); +C(, b, ); +C(, , c); +C(, , ) +C(a,b,); +C(a,,c); +C(,,c); +C(a,,); +C(,b,); +C(,,c); +C(,,)