view run/a/auto_12_A.d @ 1581:930dbd51f0cc

[Issue 1689] New: Segfaults for nested array allocation with GDC <mariusmuja@gmail.com> 2007-11-24 http://d.puremagic.com/issues/show_bug.cgi?id=1689
author thomask
date Fri, 22 Feb 2008 07:54:39 +0000
parents b8c0195059d9
children
line wrap: on
line source

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

// @author@	Thomas Kuehne <thomas-dloop@kuehne.cn>
// @date@	2005-11-26
// @uri@	http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5668

module dstress.run.a.auto_12_A;

struct S{
	int i;
}

int main(){
	auto s = new S;
	if(s.i != 0){
		assert(0);
	}

	return 0;
}