aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/memleak.zc
blob: ad4c8c0b863dde45b00e27431265248383f4fcb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
namespace;
include rt;

memdebug on;
int* g;
fn main()
{
	int* p = rt.new(int);
	*p = 7;
	g = d*p;
	rt.put_n(rt.memreport());
	rt.put_c(10);
	return 0;
}