view run/union_04.d @ 374:f87ba6507260

added missing meta-data
author thomask
date Thu, 31 Mar 2005 09:01:33 +0000
parents 9eec35fef572
children
line wrap: on
line source

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

module dstress.run.union_04;

union MyUnion{
	short s;
	byte b;
}

int main(){
	static MyUnion u={b:3};
	assert(u.sizeof==short.sizeof);
	assert(MyUnion.sizeof==short.sizeof);
	return 0;
}