void main(){twointsclass * data;union_type my_union;{twointsclass * data_buf=(twointsclass *)ALLOCA(100*sizeof(twointsclass));{size_t i;for (i=0;i < 100;i++){data_buf[i].a=1;data_buf[i].b=1;}}data=data_buf;}my_union.a=data;{twointsclass * data=my_union.b;printIntLine(data[0].a);delete [] data;}}
static void main(){twointsclass * data;union_type my_union;{twointsclass * data_buf=new twointsclass[100];{size_t i;for (i=0;i < 100;i++){data_buf[i].a=1;data_buf[i].b=1;}}data=data_buf;}my_union.a=data;{twointsclass * data=my_union.b;printIntLine(data[0].a);delete [] data;}}