Mercurial > projects > dstress
changeset 266:8a0f597f549a
fixed bug_todt_194
author | thomask |
---|---|
date | Fri, 04 Feb 2005 00:02:02 +0000 |
parents | fd1663a1f2dd |
children | 53a4adae7418 |
files | nocompile/bug_todt_194_A.d nocompile/bug_todt_194_B.d run/bug_todt_194_A.d run/bug_todt_194_B.d |
diffstat | 4 files changed, 46 insertions(+), 40 deletions(-) [+] |
line wrap: on
line diff
--- a/nocompile/bug_todt_194_A.d Thu Feb 03 23:56:50 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ zwang <nehzgnaw@gmail.com> -// @date@ 2005-02-03 -// @uri@ news:cttjcg$44f$1@digitaldaemon.com - -module dstress.nocompile.bug_todt_194_A; - -void main(){ - assert((new MyStruct!()).i==4); -} - -struct MyStruct(){ - int i=func(0).sizeof; -} - -int func(...); -
--- a/nocompile/bug_todt_194_B.d Thu Feb 03 23:56:50 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ zwang <nehzgnaw@gmail.com> -// @date@ 2005-02-03 -// @uri@ news:cttjcg$44f$1@digitaldaemon.com - -module dstress.nocompile.bug_todt_194_B; - -void main(){ - assert(new MyStruct!().i==4); -} - -struct MyStruct(){ - int i=func(0).sizeof; -} - -int func(...); -
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/bug_todt_194_A.d Fri Feb 04 00:02:02 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ zwang <nehzgnaw@gmail.com> +// @date@ 2005-02-03 +// @uri@ news:cttjcg$44f$1@digitaldaemon.com + +module dstress.run.bug_todt_194_A; + +int main(){ + assert((new MyStruct!()).i==int.sizeof); + return 0; +} + +struct MyStruct(){ + int i=func(0).sizeof; +} + +int func(...){ + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/bug_todt_194_B.d Fri Feb 04 00:02:02 2005 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ zwang <nehzgnaw@gmail.com> +// @date@ 2005-02-03 +// @uri@ news:cttjcg$44f$1@digitaldaemon.com + +module dstress.run.bug_todt_194_B; + +int main(){ + assert(new MyStruct!().i==int.sizeof); + return 0; +} + +struct MyStruct(){ + int i=func(0).sizeof; +} + +int func(...){ + return 0; +} +