static int TestS4_WW2() { S4WW s1 = new S4WW(); S4 s2 = new S4(); s2.i = 1; if (s1.s4W.s4.i != 0) { return(101); } s1.s4W.s4 = s2; s2.i = 2; if (s1.s4W.s4.i != 1) { return(101); } if (s2.i != 2) { return(101); } return(100); }
static int TestS4_WW1() { S4 s1 = new S4(); S4WW s2 = new S4WW(); s2.s4.s4.i = 1; if (s1.i != 0) { return(101); } s1 = s2.s4.s4; s2.s4.s4.i = 2; if (s1.i != 1) { return(101); } if (s2.s4.s4.i != 2) { return(101); } return(100); }