# HG changeset patch # User thomask # Date 1115824750 0 # Node ID 116be68a7a671002d9dd5fa885fb2c53e1006575 # Parent 79242ce0cf349939693aab8766c3eede52777ade auto_05 is undefined diff -r 79242ce0cf34 -r 116be68a7a67 norun/auto_05.d --- a/norun/auto_05.d Wed May 11 00:00:56 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Lionello Lunesu -// @date@ 2005-03-25 -// @uri@ news:d2175a$2u8h$1@digitaldaemon.com - -// __DSTRESS_ELINE__ 23 - -module dstress.norun.auto_05; - -class AutoClass{ - int test() { - return 0; - } -} - -AutoClass b; - -void autotest(){ - auto AutoClass c = new AutoClass(); - b = c; // this should be forbidden -} - -int main(){ - autotest(); - b.test(); // "access violation" - return 0; -} diff -r 79242ce0cf34 -r 116be68a7a67 undefined/auto_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/auto_05.d Wed May 11 15:19:10 2005 +0000 @@ -0,0 +1,28 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Lionello Lunesu +// @date@ 2005-03-25 +// @uri@ news:d2175a$2u8h$1@digitaldaemon.com + +module dstress.undefined.auto_05; + +class AutoClass{ + int test() { + return 0; + } +} + +AutoClass b; + +void autotest(){ + auto AutoClass c = new AutoClass(); + b = c; +} + +int main(){ + autotest(); + b.test(); // *undefined* + return 0; +}