[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: cscctest/csharp/class nested3.cs,NONE,1.1 nes
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: cscctest/csharp/class nested3.cs,NONE,1.1 nested3.il,NONE,1.1 nested3.jl,NONE,1.1 |
Date: |
Sun, 17 Nov 2002 14:03:55 -0500 |
Update of /cvsroot/dotgnu-pnet/cscctest/csharp/class
In directory subversions:/tmp/cvs-serv10186/csharp/class
Added Files:
nested3.cs nested3.il nested3.jl
Log Message:
tests cases bug 1731
--- NEW FILE ---
/*
* nested3.cs - Test access of protected members from nested class
*
* Copyright (C) 2002 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
public class A
{
protected void TestA()
{
}
}
public class B:A
{
public class C
{
public static void F(B b)
{
b.TestA();
}
}
}
--- NEW FILE ---
.assembly extern '.library'
{
.ver 0:0:0:0
}
.assembly '<Assembly>'
{
.ver 0:0:0:0
}
.module '<Module>'
.class public auto ansi 'A' extends ['.library']'System'.'Object'
{
.method family hidebysig instance void 'TestA'() cil managed
{
ret
.maxstack 0
} // method TestA
.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 A
.class public auto ansi 'B' extends 'A'
{
.class nested public auto ansi 'C' extends ['.library']'System'.'Object'
{
.method public static hidebysig void 'F'(class 'B' 'b') cil managed
{
ldarg.0
callvirt instance void 'A'::'TestA'()
ret
.maxstack 1
} // method F
.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 C
.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed
{
ldarg.0
call instance void 'A'::'.ctor'()
ret
.maxstack 1
} // method .ctor
} // class B
--- NEW FILE ---
.assembly extern '.library'
{
.ver 0:0:0:0
}
.assembly '<Assembly>'
{
.ver 0:0:0:0
}
.module '<Module>'
.class public auto ansi 'A' extends ['.library']'System'.'Object'
{
.method family hidebysig instance void 'TestA'() cil managed java
{
return
.locals 1
.maxstack 0
} // method TestA
.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 A
.class public auto ansi 'B' extends 'A'
{
.class nested public auto ansi 'C' extends ['.library']'System'.'Object'
{
.method public static hidebysig void 'F'(class 'B' 'b') cil managed java
{
aload_0
invokespecial instance void 'A'::'TestA'()
return
.locals 1
.maxstack 1
} // method F
.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 C
.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed java
{
aload_0
invokespecial instance void 'A'::'.ctor'()
return
.locals 1
.maxstack 1
} // method .ctor
} // class B
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: cscctest/csharp/class nested3.cs,NONE,1.1 nested3.il,NONE,1.1 nested3.jl,NONE,1.1,
Gopal.V <address@hidden> <=