annotate compile/c/const_44_C.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 |
aaf99ec76365 |
children |
|
rev |
line source |
1414
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ torhu <fake@address.dude>
|
|
6 // @date@ 2007-02-15
|
|
7 // @uri@ http://www.digitalmars.com/webnews/newsgroups.php?search_txt=&group=digitalmars.D&article_id=48845
|
|
8 // @desc@ Re: Compile time function execution...
|
|
9
|
|
10 module dstress.compile.c.const_44_C;
|
|
11
|
|
12 double square(idouble x){
|
|
13 return x * x;
|
|
14 }
|
|
15
|
|
16 const double foo = square(5.0i);
|
|
17 static assert(25 == foo);
|