# HG changeset patch # User thomask # Date 1148056778 0 # Node ID b43bba5669d16a4c363e508c76f42f76c811fdba # Parent 9e1a036ad1c02760777a241f6847fc9f3e4beb73 incorrect deprecated error Carlos Santander 2006-05-16 news:e4fsch$i4g$1@digitaldaemon.com diff -r 9e1a036ad1c0 -r b43bba5669d1 nocompile/d/deprecated_22_C.d --- /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 +// @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(); +} diff -r 9e1a036ad1c0 -r b43bba5669d1 nocompile/d/deprecated_22_D.d --- /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 +// @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(); +} diff -r 9e1a036ad1c0 -r b43bba5669d1 run/d/deprecated_22_A.d --- /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 +// @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; +} diff -r 9e1a036ad1c0 -r b43bba5669d1 run/d/deprecated_22_B.d --- /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 +// @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; +}