aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/call_new_without_rt.zc
blob: 397ba89e43fdb754a4b97e1f0250280fd6fc0701 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// expect: 5/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	int* p = new(int);
	*p = 5;
	pn(*p);
	return 0;
}
// zc0: skip