diff --git a/examples/c/glr/c++-types.test b/examples/c/glr/c++-types.test index 074d72cc..e63dd31e 100644 --- a/examples/c/glr/c++-types.test +++ b/examples/c/glr/c++-types.test @@ -17,31 +17,46 @@ cat >input <input <(T, x)" +cat >input <(T, x, y)" +cat >input <input <(x, T), y)" +cat >input <((T, x), (x, T))" +cat >input <((T, y, +(z, q)), =((y, T), +(z, q)))" +cat >input < +err: 1.5: syntax error, unexpected identifier, expecting '=' or '+' or ')'" +cat >input <(T, x) -5.0-7: (T, x, y) -7.0-5: =(x, y) -9.0-9: +((x, T), y) -11.0-5: ((T, x), (x, T)) -13.0-13: ((T, y, +(z, q)), =((y, T), +(z, q))) -15.0-15: -17.0-5: +(z, q) -err: 15.5: syntax error, unexpected identifier, expecting '=' or '+' or ')'" +run 0 "1.0-5: +(z, q)"