]> git.saurik.com Git - bison.git/blame - examples/calc++/calc++.test
package: bump to 2014
[bison.git] / examples / calc++ / calc++.test
CommitLineData
5a9c6b89
AD
1#! /bin/sh
2
fc51acdd 3# Copyright (C) 2005-2014 Free Software Foundation, Inc.
5a9c6b89
AD
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18cat >input <<EOF
19toto := 1
20toto
21EOF
22run 0 1 -s
23
24
25cat >input <<EOF
26a := 1
27b := 2
28c := 3
29d := a + b * c
30d
31EOF
32run 0 7
33run 0 7 -p
34
35
36cat >input <<EOF
37a := 1
38b := 2
39c := 3
40d := (a + b) * c
41d
42EOF
43run 0 9
44
45
46cat >input <<EOF
47a := 1
48d := a + b * c
49EOF
50run 1 ''