aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/13-memdebug.zc
blob: fd646a5d7652df9a392147cfb76688d372d5f0fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
namespace;
include rt;
memdebug on;
int* g;
fn main() {
	int* p = rt.new(int);
	*p = 1;
	g = d*p;
	rt.put_n(rt.memreport());
	rt.put_c(10);
}