annotate run/b/bug_gimplify_678_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 8ef71fc36ff7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1500
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
1 // $HeadURL$
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
2 // $Date$
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
3 // $Author$
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
4
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
5 // @author@ Frits van Bommel <fvbommel@wxs.nl>
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
6 // @date@ 2007-04-16
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1155
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
8 // @desc@ [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
9
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
10 module dstress.run.b.bug_gimplify_678_A;
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
11
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
12 int main() {
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
13 int[] arr = new int[1];
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
14 arr[$-1] -= 1;
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
15
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
16 if(-1 != arr[0]){
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
17 assert(0);
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
18 }
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
19
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
20 return 0;
8ef71fc36ff7 [Issue 1155] GDC crash (internal compiler error: in mostly_copy_tree_r, at gimplify.c:678)
thomask
parents:
diff changeset
21 }