aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/unit_ends_at_backtick_first_line.zc
blob: 8611df8c86a1171b4b252882c4fe9b2862fbe0d5 (plain) (blame)
1
2
3
4
5
6
// expect: 7/
// spec 1.1.3 and 1.5.1: the source-ending backtick ends the unit, the rest is stdin
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { int c = rt.get_c(); pn(c - 'a' + 7); return 0; }
`a