# HG changeset patch # User thomask # Date 1173611374 0 # Node ID b9844b283021e575a9eeacefbdc8eb413ab4d922 # Parent abcf8e538bacb09c2beb7743d2d37975fa58941e Re: Compile time function execution... Lionello Lunesu 2007-02-16 http://www.digitalmars.com/webnews/newsgroups.php?group=digitalmars.D&article_id=48917 diff -r abcf8e538bac -r b9844b283021 compile/c/const_46_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/c/const_46_A.d Sun Mar 11 11:09:34 2007 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Lionello Lunesu +// @date@ 2007-02-16 +// @uri@ http://www.digitalmars.com/webnews/newsgroups.php?group=digitalmars.D&article_id=48917 +// @desc@ Re: Compile time function execution... + +module dstress.compile.c.const_46_A; + +bool func() { + return true; +} + +static if (!func()) { + static assert(0); +}