Mercurial > projects > dstress
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 |
rev | line source |
---|---|
626 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ xs0 <xs0@xs0.com> | |
6 // @date@ 2005-08-10 | |
7 // @uri@ news:dddj2k$lrr$1@digitaldaemon.com | |
8 // @desc@ offsetof doesn't work on method-local struct members | |
9 | |
10 module dstress.run.o.offsetof_80_B; | |
11 | |
12 class Outer{ | |
13 int test(){ | |
14 struct Innner{ | |
15 int i; | |
16 } | |
17 | |
18 return Innner.i.offsetof; | |
19 } | |
20 } | |
21 | |
22 int main(){ | |
23 Outer o = new Outer; | |
24 o.test(); | |
25 return 0; | |
26 } |