]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bc/tests/bc/errors/20.txt
Update to version 3.1.1
[FreeBSD/FreeBSD.git] / contrib / bc / tests / bc / errors / 20.txt
1 define w() { auto z; return 1; }
2 define x() {
3         "x"
4         return (1)
5 }
6 define y() {
7         "y"
8         return (2)
9 }
10 define z() {
11         "z"
12         return (3)
13 }
14
15 define v() { return }
16
17 v()
18
19 w()
20
21 if (x() == y()) { 1 }
22 1
23 if (x() <= y()) { 2 }
24 if (y() >= x()) { 3 }
25 if (x() != y()) { 4 }
26 if (x() < y()) { 5 }
27 if (y() > x()) { 6 }
28
29 if (x() == z()) { 11 }
30 11
31 if (x() <= z()) { 12 }
32 if (z() >= x()) { 13 }
33 if (x() != z()) { 14 }
34 if (x() < z()) { 15 }
35 if (z() > x()) { 16 }
36
37 x = -10
38 while (x <= 0) {
39         x
40         if (x == -5) break;
41         x += 1
42 }
43
44 define u() {
45         auto a[];
46         return a[H]
47 }
48
49 u()
50
51 if (x == -4) x
52 else x - (i += 1) print "true\ÿÿ\7fÿlse print "fal"
53
54 i = ÿ\7fÿÿhile (i -= 2) print "i: ", i += 1, "\n"
55
56 a = 5
57
58 for (i = 5; i-= 1; --a) print "i: ", i, "; a: ", a, "\n"
59
60 define void t(x, y) {
61         print "x: ", x, "; y: ", y, "\n"
62 }
63
64 t(i++, i++\a
65 i
66
67 t(++i, ++i)
68 i