Mercurial > projects > dstress
comparison compile/c/const_46_A.d @ 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 | |
children |
comparison
equal
deleted
inserted
replaced
1416:abcf8e538bac | 1417:b9844b283021 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Lionello Lunesu <lio@lunesu.remove.com> | |
6 // @date@ 2007-02-16 | |
7 // @uri@ http://www.digitalmars.com/webnews/newsgroups.php?group=digitalmars.D&article_id=48917 | |
8 // @desc@ Re: Compile time function execution... | |
9 | |
10 module dstress.compile.c.const_46_A; | |
11 | |
12 bool func() { | |
13 return true; | |
14 } | |
15 | |
16 static if (!func()) { | |
17 static assert(0); | |
18 } |