dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: cscctest/csharp/expr ident1.cs,NONE,1.1 ident


From: Jonathan Springer <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: cscctest/csharp/expr ident1.cs,NONE,1.1 ident1.il,NONE,1.1 ident1.jl,NONE,1.1 Makefile.am,1.21,1.22
Date: Fri, 08 Nov 2002 12:03:19 -0500

Update of /cvsroot/dotgnu-pnet/cscctest/csharp/expr
In directory subversions:/tmp/cvs-serv9892/csharp/expr

Modified Files:
        Makefile.am 
Added Files:
        ident1.cs ident1.il ident1.jl 
Log Message:


Added test case for when compiler must try to get types first.



--- NEW FILE ---
using System;

class foo {

        private static int _x;

        public foo(int x) {
                _x = x;
        }

        public static int bar() {
                return _x;
        }
}

class bar {

        static int foo;

        static void Main() {
        
                foo x;
                int y;

                //System.Net.Dns z;

                foo = 1;        // class member
                x = new foo(foo);

                y = foo.bar();
        }
};


--- NEW FILE ---
.assembly extern '.library'
{
        .ver 0:0:0:0
}
.assembly '<Assembly>'
{
        .ver 0:0:0:0
}
.module '<Module>'
.class private auto ansi 'foo' extends ['.library']'System'.'Object'
{
.field private static int32 '_x'
.method public hidebysig specialname rtspecialname instance void '.ctor'(int32 
'x') cil managed 
{
        ldarg.0
        call    instance void ['.library']'System'.'Object'::'.ctor'()
        ldarg.1
        stsfld  int32 'foo'::'_x'
        ret
        .maxstack 1
} // method .ctor
.method public static hidebysig int32 'bar'() cil managed 
{
        ldsfld  int32 'foo'::'_x'
        ret
        .maxstack 1
} // method bar
} // class foo
.class private auto ansi 'bar' extends ['.library']'System'.'Object'
{
.field private static int32 'foo'
.method private static hidebysig void 'Main'() cil managed 
{
        .locals (class 'foo', int32)
        ldc.i4.1
        stsfld  int32 'bar'::'foo'
        ldsfld  int32 'bar'::'foo'
        newobj  instance void 'foo'::'.ctor'(int32)
        stloc.0
        call    int32 'foo'::'bar'()
        stloc.1
        ret
        .maxstack 1
} // method Main
.method public hidebysig specialname rtspecialname instance void '.ctor'() cil 
managed 
{
        ldarg.0
        call    instance void ['.library']'System'.'Object'::'.ctor'()
        ret
        .maxstack 1
} // method .ctor
} // class bar

--- NEW FILE ---
.assembly extern '.library'
{
        .ver 0:0:0:0
}
.assembly '<Assembly>'
{
        .ver 0:0:0:0
}
.module '<Module>'
.class private auto ansi 'foo' extends ['.library']'System'.'Object'
{
.field private static int32 '_x'
.method public hidebysig specialname rtspecialname instance void '.ctor'(int32 
'x') cil managed java 
{
        aload_0
        invokespecial   instance void ['.library']'System'.'Object'::'.ctor'()
        iload_1
        putstatic       int32 'foo'::'_x'
        return
        .locals 2
        .maxstack 1
} // method .ctor
.method public static hidebysig int32 'bar'() cil managed java 
{
        getstatic       int32 'foo'::'_x'
        ireturn
        .locals 0
        .maxstack 1
} // method bar
} // class foo
.class private auto ansi 'bar' extends ['.library']'System'.'Object'
{
.field private static int32 'foo'
.method private static hidebysig void 'Main'() cil managed java 
{
        iconst_1
        putstatic       int32 'bar'::'foo'
        new     'foo'
        dup
        getstatic       int32 'bar'::'foo'
        invokespecial   instance void 'foo'::'.ctor'(int32)
        astore_0
        invokestatic    int32 'foo'::'bar'()
        istore_1
        return
        .locals 2
        .maxstack 3
} // method Main
.method public hidebysig specialname rtspecialname instance void '.ctor'() cil 
managed java 
{
        aload_0
        invokespecial   instance void ['.library']'System'.'Object'::'.ctor'()
        return
        .locals 1
        .maxstack 1
} // method .ctor
} // class bar

Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/csharp/expr/Makefile.am,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** Makefile.am 16 Sep 2002 00:21:39 -0000      1.21
--- Makefile.am 8 Nov 2002 17:03:17 -0000       1.22
***************
*** 27,30 ****
--- 27,31 ----
                enum2.cs \
                enum3.cs \
+               ident1.cs \
                incdec1.cs \
                incdec2.cs \





reply via email to

[Prev in Thread] Current Thread [Next in Thread]