Mercurial > projects > dstress
annotate run/c/const_36_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_36_F; | |
10 | |
11 struct T(real r){ | |
12 const z = r; | |
13 } | |
14 | |
15 int main(){ | |
16 auto x = T!(2).z; | |
17 | |
18 static assert(is(x == real)); | |
19 | |
20 if(x != 2.0L){ | |
21 assert(0); | |
22 } | |
23 | |
24 return 0; | |
25 } |