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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
379
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
1 // $HeadURL$
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
2 // $Date$
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
3 // $Author$
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
4
392
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
5 // @WARNING@ direct access to Phobos's GC
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
6
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
7 // __DSTRESS_ELINE__ 15
379
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
8
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
9 module dstress.run.delete_05;
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
10
392
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
11 import std.gc;
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
12
379
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
13 union MyUnion{
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
14 delete(void* p){
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
15 assert(0);
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
16 }
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
17 }
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
18
392
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
19 void test(){
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
20 MyUnion t;
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
21 }
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
22
379
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
23 int main(){
392
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
24 test();
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
25 std.gc.fullCollect();
9faddc0de2ba 1) fixed meta data
thomask
parents: 379
diff changeset
26 std.gc.minimize();
379
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
27 return 0;
60b4ba82210e added tests for custom deallocators
thomask
parents:
diff changeset
28 }