diff options
Diffstat (limited to 'examples/c/glr/c++-types.test')
-rw-r--r-- | examples/c/glr/c++-types.test | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/c/glr/c++-types.test b/examples/c/glr/c++-types.test index 46e10483..079538c3 100644 --- a/examples/c/glr/c++-types.test +++ b/examples/c/glr/c++-types.test @@ -35,13 +35,13 @@ T (y y) = z + q; z + q; EOF run 0 "\ -1.0-4: +(z,q) -3.0-2: <declare>(T,x) -5.0-6: <init-declare>(T,x,y) -7.0-4: =(x,y) -9.0-8: +(<cast>(x,T),y) -11.0-4: <OR>(<declare>(T,x),<cast>(x,T)) -13.0-12: <OR>(<init-declare>(T,y,+(z,q)),=(<cast>(y,T),+(z,q))) +1.0-4: +(z, q) +3.0-2: <declare>(T, x) +5.0-6: <init-declare>(T, x, y) +7.0-4: =(x, y) +9.0-8: +(<cast>(x, T), y) +11.0-4: <OR>(<declare>(T, x), <cast>(x, T)) +13.0-12: <OR>(<init-declare>(T, y, +(z, q)), =(<cast>(y, T), +(z, q))) 15.0-14: <error> -17.0-4: +(z,q) +17.0-4: +(z, q) err: 15.5: syntax error, unexpected identifier, expecting '=' or '+' or ')'" |