blob: b7dcdd4506451723900821fa2155e4beef046c4b (
plain) (
blame)
1
2
3
4
5
6
|
// expect: 5/
// spec 4.1.6: a local may shadow a function name
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
int twice(int x) { return x * 2; }
fn main() { int twice = 5; pn(twice); return 0; }
|