Mercurial > projects > dstress
view 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 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ xs0 <xs0@xs0.com> // @date@ 2005-08-10 // @uri@ news:dddj2k$lrr$1@digitaldaemon.com // @desc@ offsetof doesn't work on method-local struct members module dstress.run.o.offsetof_80_B; class Outer{ int test(){ struct Innner{ int i; } return Innner.i.offsetof; } } int main(){ Outer o = new Outer; o.test(); return 0; }