aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/uninit_branch.zc
blob: e4d253b839305e5b4933f6d46b969cbca3941d04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
namespace;
include rt;

// expect: x: used before it is initialized
fn main() {
	int x;
	if (rt.get_c()) x = 1;
	rt.put_n(x);
	return 0;
}