Mercurial > projects > dstress
changeset 631:fc75a451db47
Jay <Jay_member@pathlink.com>
2005-07-05
news:dacrtc$26ik$1@digitaldaemon.com
author | thomask |
---|---|
date | Sun, 14 Aug 2005 08:39:34 +0000 |
parents | ecb96b2bf5cb |
children | 33a98edce1ee |
files | run/d/delete_10_A.d run/d/delete_10_B.d run/d/delete_10_C.d |
diffstat | 3 files changed, 61 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/d/delete_10_A.d Sun Aug 14 08:39:34 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Jay <Jay_member@pathlink.com> +// @date@ 2005-07-05 +// @uri@ news:dacrtc$26ik$1@digitaldaemon.com + +module dstress.run.d.delete_10_A; + +struct Box{ + int i; +} + +int main(){ + Box*[10] boxes; + boxes[0] = new Box; + delete boxes[0]; + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/d/delete_10_B.d Sun Aug 14 08:39:34 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Jay <Jay_member@pathlink.com> +// @date@ 2005-07-05 +// @uri@ news:dacrtc$26ik$1@digitaldaemon.com + +module dstress.run.d.delete_10_B; + +union Box{ + int i; +} + +int main(){ + Box*[10] boxes; + boxes[0] = new Box; + delete boxes[0]; + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/d/delete_10_C.d Sun Aug 14 08:39:34 2005 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Jay <Jay_member@pathlink.com> +// @date@ 2005-07-05 +// @uri@ news:dacrtc$26ik$1@digitaldaemon.com + +module dstress.run.d.delete_10_C; + +class Box{ + int i; +} + +int main(){ + Box*[10] boxes; + Box b = new Box; + boxes[0] = &b; + delete boxes[0]; + return 0; +} \ No newline at end of file