Debian Codegraph @

testing/auto/postfix.a

raw
1 !macro a @r {
2 !if @r != 1 {
3 !error "postfix did not work"
4 }
5 }
6 *=$1000
7 a = 3
8 a+2 = 3 ; symbol has not been read, so adding postfix should work
9 label
10 label+2 ; label has not been read, so adding postfix should work
11 !set b+2 = 17
12 label2
13 lda b
14 +a * - label2 == 3
15 label3
16 !for c+2, 17, 17 {
17 lda c
18 }
19 +a * - label3 == 3
20 d+2 = 17
21 !set d+2 = 17
22 label4
23 lda d
24 +a * - label4 == 3
25 label5
26 !set e+2=5
27 !for e+2, 17, 17 {
28 lda e
29 }
30 +a * - label5 == 3
31 label6
32 f+3 = 17
33 !for g+2, f, f {
34 lda g
35 }
36 +a * - label6 == 3