aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/asm_constant_name.zc
blob: b27f133796f5c96016dd2b69fc95c245c5f05a0b (plain) (blame)
1
2
3
4
5
6
// expect: 9/
// spec 4.13.1: the name of a constant pushes its value
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
const K = 9;
fn main() { pn(asm { K }); return 0; }