Mercurial > projects > dstress
annotate run/b/bug_cgcs_353_K3.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 | b8c0195059d9 |
children |
rev | line source |
---|---|
647 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ James Dunne <james.jdunne@gmail.com> | |
6 // @date@ 2005-08-28 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4882 |
647 | 8 |
9 module dstress.run.b.bug_cgcs_353_K3; | |
10 | |
11 enum Foo{ | |
12 DUMMY | |
13 } | |
14 | |
15 int main(){ | |
16 Foo*[] foos; | |
17 | |
18 assert(foos.length==0); | |
19 | |
767
8bc1fdc33e0b
fixed typos in bug_cgcs_353_*3.d and html_line_ending_dos
thomask
parents:
647
diff
changeset
|
20 foos = new Foo() ~ foos[]; |
1089 | 21 |
22 if(foos.length != 1){ | |
23 assert(0); | |
24 } | |
25 | |
647 | 26 return 0; |
767
8bc1fdc33e0b
fixed typos in bug_cgcs_353_*3.d and html_line_ending_dos
thomask
parents:
647
diff
changeset
|
27 } |