aboutsummaryrefslogtreecommitdiffstats
path: root/test/racc/start.y
diff options
context:
space:
mode:
Diffstat (limited to 'test/racc/start.y')
-rw-r--r--test/racc/start.y20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/racc/start.y b/test/racc/start.y
new file mode 100644
index 0000000000..86296899b8
--- /dev/null
+++ b/test/racc/start.y
@@ -0,0 +1,20 @@
+class S
+
+start st
+
+rule
+
+n: D { result = 'no' }
+st : A B C n { result = 'ok' }
+
+end
+
+---- inner
+
+ def parse
+ do_parse
+ end
+
+---- footer
+
+S.new.parse == 'ok' or raise 'start stmt not worked'