blob: 61fcab55eaa88909236e049eb3864bd8da160811 [file] [log] [blame]
Denis Vlasenko1c660b42007-03-05 00:27:50 +00001Format: 'expected actual'
2163 163
34 4
416 16
58 8
62 2
74 4
82 2
92 2
101 1
110 0
120 0
130 0
141 1
151 1
162 2
17-3 -3
18-2 -2
191 1
200 0
212 2
22131072 131072
2329 29
2433 33
2549 49
261 1
271 1
280 0
290 0
301 1
311 1
321 1
332 2
343 3
351 1
3658 58
372 2
3860 60
391 1
40256 256
4116 16
4262 62
434 4
4429 29
455 5
Denys Vlasenko62e43312021-09-25 22:25:19 +020046unary plus, minus
Denis Vlasenko1c660b42007-03-05 00:27:50 +000047-4 -4
484 4
Denys Vlasenko62e43312021-09-25 22:25:19 +020049conditional expressions
Denis Vlasenko1c660b42007-03-05 00:27:50 +0000501 1
5132 32
5232 32
531 1
541 1
5532 32
Denys Vlasenko62e43312021-09-25 22:25:19 +020056check that the unevaluated part of the ternary operator does not do evaluation or assignment
Denis Vlasenko1c660b42007-03-05 00:27:50 +00005720 20
5830 30
5920 20
6030 30
Denys Vlasenko62e43312021-09-25 22:25:19 +020061check precedence of assignment vs. conditional operator
62./arith.tests: line 116: arithmetic syntax error
63check precedence of assignment vs. conditional operator
64associativity of assignment-operator operator
Denis Vlasenko1c660b42007-03-05 00:27:50 +0000656 6
666,5,3 6,5,3
Denys Vlasenko62e43312021-09-25 22:25:19 +020067octal, hex
Denis Vlasenko1c660b42007-03-05 00:27:50 +000068263 263
69255 255
7040 40
Denys Vlasenko62e43312021-09-25 22:25:19 +020071other bases
7210 10
7310 10
7410 10
7510 10
7610 10
7710 10
7836 36
7936 36
8062 62
8163 63
82missing number after base
830 0
84./arith.tests: line 162: arithmetic syntax error
85./arith.tests: line 164: divide by zero
86./arith.tests: let: line 165: arithmetic syntax error
87./arith.tests: line 166: arithmetic syntax error
88./arith.tests: let: line 167: arithmetic syntax error
Denis Vlasenko1c660b42007-03-05 00:27:50 +000089abc
90def
91ghi
Denys Vlasenko62e43312021-09-25 22:25:19 +020092./arith.tests: line 190: arithmetic syntax error
Denis Vlasenko1c660b42007-03-05 00:27:50 +00009316 16
Denys Vlasenko62e43312021-09-25 22:25:19 +020094./arith.tests: line 195: arithmetic syntax error
95./arith.tests: line 196: malformed ?: operator
96./arith.tests: line 197: arithmetic syntax error
Denis Vlasenko1c660b42007-03-05 00:27:50 +0000979 9
Denys Vlasenko62e43312021-09-25 22:25:19 +020098./arith.tests: line 204: arithmetic syntax error
99./arith.tests: line 207: arithmetic syntax error
Denis Vlasenko1c660b42007-03-05 00:27:50 +00001009 9
1019 9
1029 9
1037 7
1047
1054 4
10632767 32767
10732768 32768
108131072 131072
1092147483647 2147483647
1101 1
1114 4
1124 4
1135 5
1145 5
1154 4
1163 3
1173 3
1184 4
1194 4
Denys Vlasenkod84a6042021-09-25 22:04:45 +02001207 7
Denys Vlasenko62e43312021-09-25 22:25:19 +0200121./arith.tests: line 256: arithmetic syntax error
122./arith.tests: line 258: arithmetic syntax error
Denys Vlasenko063847d2010-09-15 13:33:02 +0200123./arith.tests: line 259: arithmetic syntax error
Denys Vlasenko62e43312021-09-25 22:25:19 +0200124./arith.tests: line 261: arithmetic syntax error
Denys Vlasenko063847d2010-09-15 13:33:02 +0200125./arith.tests: line 262: arithmetic syntax error
Denis Vlasenko1c660b42007-03-05 00:27:50 +00001264 4
1277 7
128-7 -7
Denys Vlasenkod84a6042021-09-25 22:04:45 +02001297
1307
Denys Vlasenko063847d2010-09-15 13:33:02 +0200131./arith1.sub: line 2: arithmetic syntax error
132./arith1.sub: line 3: arithmetic syntax error
133./arith1.sub: line 4: arithmetic syntax error
134./arith1.sub: line 5: arithmetic syntax error
Denis Vlasenko1c660b42007-03-05 00:27:50 +00001356 6
1363 3
1377 7
1384 4
1390 0
1403 3
1417 7
1422 2
143-2 -2
1441 1
Denys Vlasenkod84a6042021-09-25 22:04:45 +02001457
1467
1477
1487
1497
1507
Denis Vlasenko1c660b42007-03-05 00:27:50 +00001515 5
1521 1
Denys Vlasenkof19e3c12018-01-28 20:13:33 +01001536 6
1542 2
1553 3
1561 1
Denis Vlasenko1c660b42007-03-05 00:27:50 +00001574 4
1580 0
Denys Vlasenkod84a6042021-09-25 22:04:45 +0200159-7
160-7
1617
1627
Denys Vlasenko62e43312021-09-25 22:25:19 +0200163-7 -7
164-7 -7
1657 7
1667 7
Denis Vlasenko1c660b42007-03-05 00:27:50 +00001678 12
Denys Vlasenko62e43312021-09-25 22:25:19 +0200168./arith.tests: line 289: arithmetic syntax error
Denis Vlasenko1c660b42007-03-05 00:27:50 +000016942
17042
17142
Denys Vlasenko62e43312021-09-25 22:25:19 +0200172./arith.tests: line 301: a[b[c]d]=e: not found