aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/decl_scope_ends_with_block.zc
blob: 4d868d70ac22e43602179fe703f0eeed404a0fbb (plain) (blame)
1
2
3
4
5
// expect error: x is used but never defined
// spec 4.1.8: a local is scoped to its block
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { { int x = 1; } pn(x); return 0; }