diff options
Diffstat (limited to 'tests/conformance/4-statements/asm_statement_local.zc')
| -rw-r--r-- | tests/conformance/4-statements/asm_statement_local.zc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/conformance/4-statements/asm_statement_local.zc b/tests/conformance/4-statements/asm_statement_local.zc new file mode 100644 index 0000000..9b7e985 --- /dev/null +++ b/tests/conformance/4-statements/asm_statement_local.zc @@ -0,0 +1,5 @@ +// expect: 8/ +// spec 4.13.1 example: the name of a local pushes its address +include rt; +void pn(int x) { rt.put_n(x); rt.put_c(10); } +fn main() { int y = 7; asm { y @ 1 + y ! } pn(y); return 0; } |
