view norun/auto_05.d @ 432:db4b6169a99d

1) implemented checkRuntimeErrorMessage 2) fixed norun test cases
author thomask
date Fri, 15 Apr 2005 08:55:00 +0000
parents 0192f18b7ff6
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Lionello Lunesu <lio@lunesu.removethis.com>
// @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;
}