annotate nocompile/o/offsetof_01.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 cfb2579092fc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
553
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
1 // $HeadURL$
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
2 // $Date$
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
3 // $Author$
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
4
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
5 // __DSTRESS_ELINE__ 15
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
6
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
7 module dstress.nocompile.o.offsetof_01;
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
8
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
9 struct MyStruct{
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
10 int a;
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
11 }
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
12
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
13 int main(){
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
14 MyStruct s;
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
15 s.a = s.a.offsetof;
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
16 return 0;
cfb2579092fc updated .offsetof to DMD-0.124
thomask
parents:
diff changeset
17 }