view run/d/debug_14_A.d @ 1576:b3e16c86558e

[Issue 1398] New: GDC doesn't generate correct code <mariusmuja@gmail.com> 2007-08-04 http://d.puremagic.com/issues/show_bug.cgi?id=1398
author thomask
date Thu, 21 Feb 2008 15:20:08 +0000
parents 4a49d5a2169a
children
line wrap: on
line source

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

// @author@	Hasan Aljudy <hasan.aljudy@gmail.com>
// @date@	2007-02-23
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1002
// @desc@	[Issue 1002] debug statement crashes at compile-time function execution

module dstress.run.d.debug_14_A;

dchar[] testd( dchar[] input ){
	debug int x = 10;
	return "my";
}

int main(){
	static x = testd("hello");
	if("my" != x){
		assert(0);
	}
	return 0;
}