Mercurial > projects > dstress
changeset 299:da96294e4233
post Sinai part 1/3
author | thomask |
---|---|
date | Fri, 11 Mar 2005 23:50:05 +0000 |
parents | 818470984520 |
children | c1c92aab770e |
files | nocompile/bug_template_1455_A.d run/OutOfMemory_01.d run/OutOfMemory_02.d run/mixin_05.d run/mixin_06.d |
diffstat | 5 files changed, 108 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_template_1455_A.d Fri Mar 11 23:50:05 2005 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Lars Ivar Igesund <larsivar@igesund.net> +// @date@ 2005-02-22 +// @uri@ news:cvg5mn$19lb$1@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3035 + +module dstress.nocompile.bug_template_1455_A; + +class Foo(T) { +} + +class Bar : Foo!(Nothing){ +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/OutOfMemory_01.d Fri Mar 11 23:50:05 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Anders F Björklund <afb@algonet.se> +// @date@ 2005-03-06 +// @uri@ news:d0ek4k$2ko8$2@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3093 + +// @WARNING@ depends on Phobos + +module dstress.run.OutOfMemory_01; + +import std.outofmemory; + +int main(){ + try{ + _d_OutOfMemory(); + }catch(OutOfMemoryException e){ + return 0; + } + assert(0); +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/OutOfMemory_02.d Fri Mar 11 23:50:05 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Anders F Björklund <afb@algonet.se> +// @date@ 2005-03-06 +// @uri@ news:d0ek4k$2ko8$2@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3093 + +// @WARNING@ depends on Phobos + +module dstress.run.OutOfMemory_02; + +import std.outofmemory; + +int main(){ + try{ + _d_OutOfMemory(); + }catch(Exception e){ + return 0; + } + assert(0); +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/mixin_05.d Fri Mar 11 23:50:05 2005 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ilya Zaitseff <sark7@mail333.com> +// @date@ 2005-02-22 +// @uri@ news:opsmlwgpo1aaezs2@robingood +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3034 + +module dstress.run.mixin_05; + +template T(){ + int x; +} + +struct S{ + mixin T; +} + +const S s = { x:2 }; + +int main(){ + assert(s.x==2); + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/mixin_06.d Fri Mar 11 23:50:05 2005 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Ilya Zaitseff <sark7@mail333.com> +// @date@ 2005-02-22 +// @uri@ news:opsmlwgpo1aaezs2@robingood +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3034 + +module dstress.run.mixin_06; + +struct S{ + int x; +} + +const S s = { x:2 }; + +int main(){ + assert(s.x==2); + return 0; +} \ No newline at end of file