annotate compile/c/const_46_A.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents b9844b283021
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1417
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
1 // $HeadURL$
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
2 // $Date$
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
3 // $Author$
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
4
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
5 // @author@ Lionello Lunesu <lio@lunesu.remove.com>
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
6 // @date@ 2007-02-16
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
7 // @uri@ http://www.digitalmars.com/webnews/newsgroups.php?group=digitalmars.D&article_id=48917
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
8 // @desc@ Re: Compile time function execution...
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
9
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
10 module dstress.compile.c.const_46_A;
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
11
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
12 bool func() {
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
13 return true;
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
14 }
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
15
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
16 static if (!func()) {
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
17 static assert(0);
b9844b283021 Re: Compile time function execution...
thomask
parents:
diff changeset
18 }