annotate run/bug_cgcod_1640_C.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 6e4063f99377
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
210
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
1 // $HeadURL$
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
2 // $Date$
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
3 // $Author$
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
4
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
5 // @author@ h3r3tic <foo@bar.baz>
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
6 // @date@ 2004-12-25
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
7 // @uri@ news:cqihjc$16c8$1@digitaldaemon.com
1487
6e4063f99377 changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2602
210
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
9
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
10 module dstress.run.bug_cgcod_1640_C;
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
11
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
12 struct MyStruct{
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
13 int a;
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
14 }
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
15
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
16 void bar() {}
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
17
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
18 int main(){
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
19 MyStruct[] arr;
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
20 foreach(MyStruct a; arr){
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
21 bar();
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
22 }
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
23 return 0;
54c661db561b Internal error: ..\ztc\cgcod.c 1640
thomask
parents:
diff changeset
24 }