mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
examples: more tests
* examples/c/mfcalc/mfcalc.test: here.
This commit is contained in:
@@ -25,3 +25,15 @@ cat >input <<EOF
|
|||||||
EOF
|
EOF
|
||||||
run 0 9
|
run 0 9
|
||||||
run -noerr 0 9 -p
|
run -noerr 0 9 -p
|
||||||
|
|
||||||
|
cat >input <<EOF
|
||||||
|
a = 256
|
||||||
|
sqrt (a)
|
||||||
|
EOF
|
||||||
|
run 0 '256
|
||||||
|
16'
|
||||||
|
|
||||||
|
cat >input <<EOF
|
||||||
|
16 == 12
|
||||||
|
EOF
|
||||||
|
run 0 'err: syntax error'
|
||||||
|
|||||||
Reference in New Issue
Block a user