Ejemplo n.º 1
0
        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 *[]>();
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public static void Entry()
        {
            Inf inf = new Sub2();

            inf.Foo();
        }