Mercurial > projects > dstress
annotate run/o/opCatAssign_21_A.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 | 2ff35944af8e |
children |
rev | line source |
---|---|
1323
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
2 // $Date$ |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
3 // $Author$ |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
4 |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
5 // @author@ Bill Baxter <wbaxter@gmail.com> |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
6 // @date@ 2006-12-25 |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=748 |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 748] internal error with mixed static / dynamic array |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
9 |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
10 module dstress.run.o.opCatAssign_21_A; |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
11 |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
12 int main(){ |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
13 int[2][] a; |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
14 a ~= [3, 4]; |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
15 if(a.length != 1){ |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
16 assert(0); |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
17 } |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
18 if(a[0].length != 2){ |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
19 assert(0); |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
20 } |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
21 if(a[0][0] != 3){ |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
22 assert(0); |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
23 } |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
24 if(a[0][1] != 4){ |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
25 assert(0); |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
26 } |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
27 |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
28 return 0; |
2ff35944af8e
[Issue 748] internal error with mixed static / dynamic array
thomask
parents:
diff
changeset
|
29 } |