[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: cscctest/csharp/class constructor3.cs,NONE,1.
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: cscctest/csharp/class constructor3.cs,NONE,1.1constructor3.jl,NONE,1.1Makefile.am,1.30,1.31 |
Date: |
Fri, 14 Feb 2003 09:13:48 -0500 |
Update of /cvsroot/dotgnu-pnet/cscctest/csharp/class
In directory subversions:/tmp/cvs-serv8895/csharp/class
Modified Files:
Makefile.am
Added Files:
constructor3.cs constructor3.il constructor3.jl
Log Message:
tests for bug #2544
--- NEW FILE ---
/*
* constructor3.cs - Test the handling of static constructors
*
* 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
*/
using System;
public class Readonly
{
public static readonly bool flag= true;
static Readonly()
{
flag= false;
}
}
--- NEW FILE ---
.assembly extern '.library'
{
.ver 0:0:0:0
}
.assembly '<Assembly>'
{
.ver 0:0:0:0
}
.module '<Module>'
.class public auto ansi 'Readonly' extends ['.library']'System'.'Object'
{
.field public static initonly bool 'flag'
.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed
{
ldarg.0
call instance void ['.library']'System'.'Object'::'.ctor'()
ret
.maxstack 1
} // method .ctor
.method private static hidebysig specialname rtspecialname void '.cctor'() cil
managed
{
ldc.i4.1
stsfld bool 'Readonly'::'flag'
ldc.i4.0
stsfld bool 'Readonly'::'flag'
ret
.maxstack 1
} // method .cctor
} // class Readonly
--- NEW FILE ---
.assembly extern '.library'
{
.ver 0:0:0:0
}
.assembly '<Assembly>'
{
.ver 0:0:0:0
}
.module '<Module>'
.class public auto ansi 'Readonly' extends ['.library']'System'.'Object'
{
.field public static initonly bool 'flag'
.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
.method private static hidebysig specialname rtspecialname void '.cctor'() cil
managed java
{
iconst_1
putstatic bool 'Readonly'::'flag'
iconst_0
putstatic bool 'Readonly'::'flag'
return
.locals 0
.maxstack 1
} // method .cctor
} // class Readonly
Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/csharp/class/Makefile.am,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** Makefile.am 11 Dec 2002 18:01:38 -0000 1.30
--- Makefile.am 14 Feb 2003 14:13:46 -0000 1.31
***************
*** 5,8 ****
--- 5,9 ----
constructor1.cs \
constructor2.cs \
+ constructor3.cs \
delegate1.cs \
enum1.cs \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: cscctest/csharp/class constructor3.cs,NONE,1.1constructor3.jl,NONE,1.1Makefile.am,1.30,1.31,
Gopal.V <address@hidden> <=