From 5ff61110d8c6e70eab3ad71bc6040df330347f8f Mon Sep 17 00:00:00 2001 From: dcw <dcw> Date: Wed, 29 Nov 1989 16:30:14 +0000 Subject: [PATCH] enhanced version that tests all the optimizations. (the .c generated prior to optimization contains a zero-sized union though, which is wrong) --- test/cdata.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/cdata.in b/test/cdata.in index 6362cbf..a2e20f8 100644 --- a/test/cdata.in +++ b/test/cdata.in @@ -1,3 +1,10 @@ +n = a | b | c | d | e; +o = a( int aa ); +p = a | b; +q = a | b | c(int cc) | d | e; +r = a | b | c(int cc) | d( string dd) | e; +s = a(int aa) | b | c | d | e; + intlist = null "null" | cons( int first, intlist next ) 1 " , " 2; illist = null "null" | cons( intlist first, illist next ) "[ " 1 " ] , " 2; idtree = leaf( string id ) "leaf '" 1 "'" -- GitLab