Mercurial > projects > dstress
annotate run/b/bug_cgcs_353_B3.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_B3; | |
10 | |
11 class Foo { | |
12 this(){ | |
13 } | |
14 } | |
15 | |
16 int main(){ | |
17 Foo[] foos; | |
18 | |
1089 | 19 if(foos.length != 0){ |
20 assert(0); | |
21 } | |
647 | 22 |
767
8bc1fdc33e0b
fixed typos in bug_cgcs_353_*3.d and html_line_ending_dos
thomask
parents:
647
diff
changeset
|
23 foos = new Foo() ~ foos[]; |
1089 | 24 |
25 if(foos.length != 1){ | |
26 assert(0); | |
27 } | |
28 | |
647 | 29 return 0; |
767
8bc1fdc33e0b
fixed typos in bug_cgcs_353_*3.d and html_line_ending_dos
thomask
parents:
647
diff
changeset
|
30 } |