aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/o3zero.zc
blob: 7309c1d86430a6803a6257626224ddeed45298d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
namespace;
include rt;

unchecked o3 int raw() {
	int* p = rt.new(4);
	return p[0] + p[1] + p[2] + p[3] + (p[-1] < 0);
}
fn main() {
	rt.put_n(raw()); rt.put_c(10);
	return 0;
}