annotate run/bug_cod1_1648_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 ec5e144583ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
372
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
1 // $HeadURL$
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
2 // $Date$
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
3 // $Author$
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
4
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
5 // @author@ Tom S <h3r3tic@remove.mat.uni.torun.pl>
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
6 // @date@ 2005-03-27
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 372
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3361
372
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
8
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
9 module dstress.run.bug_cod1_1648_A;
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
10
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
11 struct MyStruct{
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
12 static MyStruct bar(){
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
13 MyStruct s;
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
14 return s;
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
15 }
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
16 }
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
17
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
18 int main(){
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
19 MyStruct[] array; // or any other size, can be dynamically alloc'd
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
20 array.length=2;
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
21 array[] = MyStruct.bar;
f1c605ebb825 static struct function: -O -inline
thomask
parents:
diff changeset
22 return 0;
1559
ec5e144583ea D1 -> D2 : 1/N
thomask
parents: 1489
diff changeset
23 }