summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2007-03-23 18:13:38 +0000
committerbringert <bringert@cs.chalmers.se>2007-03-23 18:13:38 +0000
commit5dc92edbb0a12bf44f70a0187d09d453ea68d4f4 (patch)
treed2f6bb9ba266c13b2c5e4cdbaaf69f3677cc78fe /test
parentccb76f5da0bcff3694f2a306b3056df67ccb27eb (diff)
Added srg0003: test case for indirect cycles.
Diffstat (limited to 'test')
-rw-r--r--test/srg/srg0003/cyclic.gf11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/srg/srg0003/cyclic.gf b/test/srg/srg0003/cyclic.gf
new file mode 100644
index 000000000..316589cd8
--- /dev/null
+++ b/test/srg/srg0003/cyclic.gf
@@ -0,0 +1,11 @@
+-- a grammar with an indirect cycle
+
+cat S; G;
+
+fun f : S ;
+fun fg : G -> S ;
+fun gf : S -> G ;
+
+lin f = { s = "f" } ;
+lin fg x = x;
+lin gf x = x;