# HG changeset patch # User thomask # Date 1173612006 0 # Node ID 73f829b7be2f367e9f306e6027348aaf9487099f # Parent 49ae61a333dde32f37fc7f679402403668b053a0 [Issue 968] ICE on compile-time execution Frits van Bommel 2007-02-15 http://d.puremagic.com/issues/show_bug.cgi?id=968 diff -r 49ae61a333dd -r 73f829b7be2f run/i/interpret_04_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/i/interpret_04_A.d Sun Mar 11 11:20:06 2007 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Frits van Bommel +// @date@ 2007-02-15 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=968 +// @desc@ [Issue 968] ICE on compile-time execution + +module dstress.run.i.interpret_04_A; + +real test(){ + return 0.0; +} + +int main(){ + static x = test(); + if(0.0 == x){ + return 0; + } + assert(0); +}