Mercurial > projects > dstress
changeset 1417:b9844b283021
Re: Compile time function execution...
Lionello Lunesu <lio@lunesu.remove.com>
2007-02-16
http://www.digitalmars.com/webnews/newsgroups.php?group=digitalmars.D&article_id=48917
author | thomask |
---|---|
date | Sun, 11 Mar 2007 11:09:34 +0000 |
parents | abcf8e538bac |
children | 5cc974ee1e2f |
files | compile/c/const_46_A.d |
diffstat | 1 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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 <lio@lunesu.remove.com> +// @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); +}