Commit | Line | Data |
---|---|---|
975f8a9e AM |
1 | SECTIONS |
2 | { | |
3 | . = 0x80000; | |
4 | A = .; | |
5 | .text : | |
6 | { | |
7 | _start = .; | |
8 | . = 0x10000; | |
9 | } | |
10 | B = .; | |
11 | .data : | |
12 | { | |
13 | . = 0x10000; | |
14 | } | |
15 | C = .; | |
16 | .bss : | |
17 | { | |
18 | . = 0x10000; | |
19 | } | |
20 | D = A - C + B; | |
21 | E = A + B - C; | |
22 | /DISCARD/ : {*(*)} | |
23 | } | |
24 | ||
25 | ASSERT(D == E, "Addition is not commutative"); |