view run/u/union_16_E.d @ 908:9755f3e63e3d

<regan@netwin.co.nz> 2006-03-12 news:bug-44-3@http.d.puremagic.com/bugzilla/
author thomask
date Mon, 13 Mar 2006 08:12:46 +0000
parents
children 81222734adf3
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	<regan@netwin.co.nz>
// @date@	2006-03-12
// @uri@	news:bug-44-3@http.d.puremagic.com/bugzilla/

module dstress.run.u.union_16_E;

struct A {
        int a;
	B b;
}

struct B {
        int b1;
        int b2;
}


int main(){
	if(A.sizeof != int.sizeof * 3){
		assert(0);
	}
	
	A a;
	
	if(a.sizeof != int.sizeof * 3){
		assert(0);
	}
	

	return 0;
}