aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/asm_string_pushes_address.zc
blob: 7041996b424d5889cb57c67f287e27baec2ef19f (plain) (blame)
1
2
3
4
5
// expect: 104/
// spec 4.13.1: a string pushes its address
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { char* s = asm { "hi" }; pn(s[0]); return 0; }