Mercurial > projects > dstress
changeset 1007:b43bba5669d1
incorrect deprecated error
Carlos Santander <csantander619@gmail.com>
2006-05-16
news:e4fsch$i4g$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 19 May 2006 16:39:38 +0000 |
parents | 9e1a036ad1c0 |
children | f54eb4740885 |
files | nocompile/d/deprecated_22_C.d nocompile/d/deprecated_22_D.d run/d/deprecated_22_A.d run/d/deprecated_22_B.d |
diffstat | 4 files changed, 112 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/d/deprecated_22_C.d Fri May 19 16:39:38 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Carlos Santander <csantander619@gmail.com> +// @date@ 2006-05-16 +// @uri@ news:e4fsch$i4g$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 22 + +module dstress.nocompile.d.deprecated_22_C; + +void baz() { +} + +void foo(int i) { +} + +deprecated alias baz foo; + +void main(){ + foo(); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/d/deprecated_22_D.d Fri May 19 16:39:38 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Carlos Santander <csantander619@gmail.com> +// @date@ 2006-05-16 +// @uri@ news:e4fsch$i4g$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 22 + +module dstress.nocompile.d.deprecated_22_D; + +void baz() { +} + +deprecated alias baz foo; + +void foo(int i) { +} + +void main(){ + foo(); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/d/deprecated_22_A.d Fri May 19 16:39:38 2006 +0000 @@ -0,0 +1,33 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Carlos Santander <csantander619@gmail.com> +// @date@ 2006-05-16 +// @uri@ news:e4fsch$i4g$1@digitaldaemon.com + +module dstress.run.d.deprecated_22_A; + +int status; + +void baz() { + status--; +} + +deprecated alias baz foo; + +void foo(int i) { + status += i; +} + +int main(){ + status = 90; + + foo(2); + + if(status != 92){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/d/deprecated_22_B.d Fri May 19 16:39:38 2006 +0000 @@ -0,0 +1,33 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Carlos Santander <csantander619@gmail.com> +// @date@ 2006-05-16 +// @uri@ news:e4fsch$i4g$1@digitaldaemon.com + +module dstress.run.d.deprecated_22_B; + +int status; + +void baz() { + status--; +} + +void foo(int i) { + status += i; +} + +deprecated alias baz foo; + +int main(){ + status = 90; + + foo(2); + + if(status != 92){ + assert(0); + } + + return 0; +}