aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/unchecked_toplevel_rest_of_unit.zc
blob: 7d70effe7849b5c055042d432afdfe4601671e2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// expect: 1/
// spec 4.9: unchecked; at top level switches the analyzer off for the rest of the unit
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
unchecked;
fn main() {
	int* p = rt.new(int);
	pn(1);
	return 0;
}
// zc0: skip