summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/srg/srg0006/srg0006.gf10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/srg/srg0006/srg0006.gf b/test/srg/srg0006/srg0006.gf
new file mode 100644
index 000000000..9fa34ed64
--- /dev/null
+++ b/test/srg/srg0006/srg0006.gf
@@ -0,0 +1,10 @@
+-- A grammar with a cycle caused by an empty category.
+cat S; E;
+
+fun f : E -> S -> S;
+fun g : S ;
+fun e : E ;
+
+lin f e s = { s = e.s ++ s.s } ;
+lin g = { s = "s" } ;
+lin e = { s = [] } ; \ No newline at end of file