Mercurial > projects > dstress
annotate run/b/bug_cod1_2528_B.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 | ef3062e62d77 |
children |
rev | line source |
---|---|
1447 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Vladimir <thecybershadow@gmail.com> | |
6 // @date@ 2007-04-03 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1092 | |
8 // @desc@ [Issue 1092] compiler crash in ..\ztc\cod1.c 2528 | |
9 | |
10 module dstress.run.b.bug_cod1_2528_B; | |
11 | |
12 int main(){ | |
13 byte x = 'Z'; | |
14 byte[] y = [x]; | |
15 void[] z = cast(void[])y; | |
16 | |
17 if('Z' != (cast(byte[]) z)[0]){ | |
18 assert(0); | |
19 } | |
20 | |
21 return 0; | |
22 } | |
23 |