aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/8-runtime/get_c_reads_input.zc
blob: 469d56424bfac15e04cf4480894c2b0a09795eff (plain) (blame)
1
2
3
4
5
6
// expect: 104/105/-1/
// spec 8.3: input after the backtick line
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { pn(rt.get_c()); pn(rt.get_c()); rt.get_c(); pn(rt.get_c()); return 0; }
`hi