Mercurial > projects > dstress
annotate norun/delete_05.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | 9faddc0de2ba |
children |
rev | line source |
---|---|
379 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
392 | 5 // @WARNING@ direct access to Phobos's GC |
6 | |
7 // __DSTRESS_ELINE__ 15 | |
379 | 8 |
9 module dstress.run.delete_05; | |
10 | |
392 | 11 import std.gc; |
12 | |
379 | 13 union MyUnion{ |
14 delete(void* p){ | |
15 assert(0); | |
16 } | |
17 } | |
18 | |
392 | 19 void test(){ |
20 MyUnion t; | |
21 } | |
22 | |
379 | 23 int main(){ |
392 | 24 test(); |
25 std.gc.fullCollect(); | |
26 std.gc.minimize(); | |
379 | 27 return 0; |
28 } |