public static unsafe void Entry() { char *[] cc = null; int *[] ii = null; short *[] ss = null; var cls = new Sub2(); cls.Foo(cc, ii); cls.Foo(cc, ss); Inf <int *[]> inf = cls; inf.Foo(cc, ii); Inf2 <short *[]> inf2 = cls; inf2.Foo(cc, ss); var cls2 = new Cls <long *[]>(); Sub1 <int *[]> s1 = cls; s1.Foo(cc, ii); s1.Foo(cc, ss); new Cls <int *[]>(); }
public static int Entry() { char *[] cc = new char *[1]; int *[] ii = new int *[1]; short *[] ss = new short *[1]; var cls = new Sub2(); cls.Foo(cc, ii); if (path != 1) { return(1); } cls.Foo(cc, ss); if (path != 2) { return(2); } Inf <int *[]> inf = cls; inf.Foo(cc, ii); if (path != 1) { return(3); } Inf2 <short *[]> inf2 = cls; inf2.Foo(cc, ss); if (path != 2) { return(4); } var cls2 = new Cls <long *[]>(); Sub1 <int *[]> s1 = cls; s1.Foo(cc, ii); if (path != 1) { return(5); } s1.Foo(cc, ss); if (path != 2) { return(6); } new Cls <int *[]>(); return(0); }