aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/6-ownership/temporary_to_reader.zc
blob: b45d0969f0cb97b6e46edb07665c51ba8ac7f9f1 (plain) (blame)
1
2
3
4
5
6
7
// expect: abc/
// spec 6.5.4
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
char* msg() { char* s = rt.new(4); s[0] = 97; s[1] = 98; s[2] = 99; s[3] = 0; return s; }
fn main() { rt.put_s(msg()); rt.put_c(10); return 0; }
// zc0: skip