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