annotate run/o/offsetof_80_B.d @ 626:a57ea0ea4615

offsetof doesn't work on method-local struct members xs0 <xs0@xs0.com> 2005-08-10 news:dddj2k$lrr$1@digitaldaemon.com
author thomask
date Sat, 13 Aug 2005 20:38:57 +0000
parents
children 9dcac8d4e97f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
626
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
1 // $HeadURL$
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
2 // $Date$
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
3 // $Author$
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
4
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
5 // @author@ xs0 <xs0@xs0.com>
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
6 // @date@ 2005-08-10
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
7 // @uri@ news:dddj2k$lrr$1@digitaldaemon.com
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
8 // @desc@ offsetof doesn't work on method-local struct members
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
9
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
10 module dstress.run.o.offsetof_80_B;
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
11
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
12 class Outer{
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
13 int test(){
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
14 struct Innner{
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
15 int i;
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
16 }
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
17
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
18 return Innner.i.offsetof;
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
19 }
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
20 }
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
21
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
22 int main(){
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
23 Outer o = new Outer;
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
24 o.test();
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
25 return 0;
a57ea0ea4615 offsetof doesn't work on method-local struct members
thomask
parents:
diff changeset
26 }