aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/uninit_read_rejected.zc
blob: 3ef407a114014a2a258545562bd4bf40f9b7e2f3 (plain) (blame)
1
2
3
4
5
// expect error: used before it is initialized
// spec 4.1.5: reading a local before any assignment is an error
include rt;
fn main() { int x; rt.put_n(x); return 0; }
// zc0: skip