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