Mercurial > projects > dstress
annotate run/t/template_struct_05_I.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 | 61617b6d35af |
children |
rev | line source |
---|---|
753 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.t.template_struct_05_I; | |
6 | |
7 struct S(dchar[] c){ | |
8 dchar[] x = c; | |
9 } | |
10 | |
11 int main(){ | |
12 S!("abc")* a = new S!("abc"); | |
13 assert(a.x == "abc"); | |
14 | |
15 S!(null)* b = new S!(null); | |
16 assert(b.x is null); | |
17 | |
18 return 0; | |
19 } |