view run/b/bug_interpret_96_A.d @ 1619:bebc7472a832

Fix #7.
author Christian Kamm <kamm incasoftware de>
date Sat, 07 Nov 2009 18:55:30 +0100
parents 2346dc04e49f
children
line wrap: on
line source

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

// @author@	Kevin Bealer <kevinbealer@gmail.com>
// @date@	2007-02-18
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=981
// @desc@	[Issue 981] CFTE fails in non-template and functions that takes no args.

module dstress.run.b.bug_interpret_96_A;

char[] foo(char[] text){
	return "abc" ~ text;
}

struct S{
	const char[] x = foo("d");
}

int main(){
	S s;
	if("abcd" != s.x){
		assert(0);
	}
	return 0;
}