view run/o/offsetof_80_E.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_E;

int outer(){
	int test(){
		class Innner{
			int i;
	        }
	        
		return Innner.i.offsetof;
	}
	
	return test();
}

int main(){
	outer();
	return 0;
}