aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/decl_shadow_param.zc
blob: 9a91f1cdecee94cb257327d357f85096bcaa5686 (plain) (blame)
1
2
3
4
5
6
// expect: 9/5/
// spec 4.1.6: a local may shadow a parameter
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
int f(int x) { { int x = 9; pn(x); } return x; }
fn main() { pn(f(5)); return 0; }