summaryrefslogtreecommitdiff
path: root/examples/test/srg/cyclic-empty-prod
diff options
context:
space:
mode:
Diffstat (limited to 'examples/test/srg/cyclic-empty-prod')
-rw-r--r--examples/test/srg/cyclic-empty-prod/cyclic-empty-prod.gf9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/test/srg/cyclic-empty-prod/cyclic-empty-prod.gf b/examples/test/srg/cyclic-empty-prod/cyclic-empty-prod.gf
new file mode 100644
index 000000000..fc87b893f
--- /dev/null
+++ b/examples/test/srg/cyclic-empty-prod/cyclic-empty-prod.gf
@@ -0,0 +1,9 @@
+cat S; E;
+
+fun s : S ;
+fun es : E -> S -> S ;
+fun e : E ;
+
+lin s = { s = "s" } ;
+lin es e s = { s = e.s ++ s.s } ;
+lin e = { s = [] } ;