aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/asm_negative_literal.zc
blob: ebd8432470950244fbfed10196a6d9c48508be9c (plain) (blame)
1
2
3
4
5
// expect: -2/
// spec 4.13.1: -n pushes a negative
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { int x = asm { -5 3 + }; pn(x); return 0; }