Mercurial > projects > dstress
annotate run/c/const_37_F.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | ab71ca67c717 |
children |
rev | line source |
---|---|
917 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Dave <Dave_member@pathlink.com> | |
6 // @date@ 2006-03-18 | |
7 // @uri@ news:dvgq34$22hv$1@digitaldaemon.com | |
8 | |
9 module dstress.run.c.const_37_F; | |
10 | |
11 const z = r; | |
12 const float r = 2.0f; | |
13 | |
14 int main(){ | |
15 auto x = z; | |
16 | |
17 static assert(is(x == float)); | |
18 | |
19 if(x != 2.0f){ | |
20 assert(0); | |
21 } | |
22 | |
23 return 0; | |
24 } |