aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/unchecked_stmt_single.zc
blob: 2bdccb1cee942726172cff41510343d20f3474fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// expect: 3/
// spec 4.9: unchecked stmt
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	int a = 1;
	unchecked a = a + 2;
	pn(a);
	return 0;
}