comparison tangotests/mem5.d @ 209:c4c9b4ac021b trunk

[svn r225] Fixed: delete expressions no longer use llvm's free instruction, which crashes on a GC provided pointer.
author lindquist
date Wed, 14 May 2008 01:22:40 +0200
parents
children
comparison
equal deleted inserted replaced
208:086e1aa99557 209:c4c9b4ac021b
1 module tangotests.mem5;
2
3 class SC
4 {
5 int* ip;
6 this()
7 {
8 ip = new int;
9 }
10 ~this()
11 {
12 delete ip;
13 }
14 void check()
15 {
16 assert(ip !is null);
17 }
18 }
19
20 void main()
21 {
22 scope sc = new SC;
23 sc.check();
24 }