view run/o/offsetof_80_B.d @ 1091:9dcac8d4e97f

post DMD-0.163 review
author thomask
date Fri, 21 Jul 2006 11:15:26 +0000
parents a57ea0ea4615
children b8c0195059d9
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;
}