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

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

[dotgnu-pnet-commits] cscctest ChangeLog configure.in csharp/class/Ma...


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] cscctest ChangeLog configure.in csharp/class/Ma...
Date: Sat, 22 Sep 2007 13:25:19 +0000

CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    cscctest
Changes by:     Klaus Treichel <ktreichel>      07/09/22 13:25:19

Modified files:
        .              : ChangeLog configure.in 
        csharp/class   : Makefile.am 
Added files:
        csharp/class/generics: Makefile.am class1.cs class1.il class1.jl 
                               class2.cs class2.il class2.jl 
                               delegate1.cs delegate1.il delegate1.jerr 
                               interface1.cs interface1.il interface1.jl 

Log message:
        Add first tests for declaration of generic types.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/cscctest/ChangeLog?cvsroot=dotgnu-pnet&r1=1.168&r2=1.169
http://cvs.savannah.gnu.org/viewcvs/cscctest/configure.in?cvsroot=dotgnu-pnet&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/Makefile.am?cvsroot=dotgnu-pnet&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/Makefile.am?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/class1.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/class1.il?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/class1.jl?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/class2.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/class2.il?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/class2.jl?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/delegate1.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/delegate1.il?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/delegate1.jerr?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/interface1.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/interface1.il?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/interface1.jl?cvsroot=dotgnu-pnet&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/ChangeLog,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -b -r1.168 -r1.169
--- ChangeLog   30 May 2007 06:26:06 -0000      1.168
+++ ChangeLog   22 Sep 2007 13:25:17 -0000      1.169
@@ -1,3 +1,21 @@
+2007-09-22  Klaus Treichel  <address@hidden>
+
+       * configure.in: Add csharp/class/generics/Makefile to the generated
+       Makefiles.
+
+       * csharp/class/Makefile.am: Add the generics subdir.
+
+       * csharp/class/generics/Makefile.am: Added for the generic type
+       declaration tests.
+
+       * csharp/class/generics/class1.cs, csharp/class/generics/class1.il,
+       csharp/class/generics/class1.jl, csharp/class/generics/class2.cs,
+       csharp/class/generics/class2.il, csharp/class/generics/class2.jl,
+       csharp/class/generics/delegate1.cs, csharp/class/generics/delegate1.il,
+       csharp/class/generics/delegate1.jerr, 
csharp/class/generics/interface1.cs,
+       csharp/class/generics/interface1.il, 
csharp/class/generics/interface1.jl:
+       Add first tests for declaration of generic types.
+
 2007-05-30  Klaus Treichel  <address@hidden>
 
        * csharp/stmt/Makefile.am: Add the new tests for the using namespace

Index: configure.in
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/configure.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- configure.in        13 Sep 2002 00:43:25 -0000      1.4
+++ configure.in        22 Sep 2007 13:25:18 -0000      1.5
@@ -56,6 +56,7 @@
 csharp/stmt/Makefile
 csharp/expr/Makefile
 csharp/class/Makefile
+csharp/class/generics/Makefile
 c/Makefile
 c/decl/Makefile
 c/expr/Makefile

Index: csharp/class/Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/csharp/class/Makefile.am,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- csharp/class/Makefile.am    10 May 2003 06:06:47 -0000      1.36
+++ csharp/class/Makefile.am    22 Sep 2007 13:25:18 -0000      1.37
@@ -1,3 +1,4 @@
+SUBDIRS = generics
 
 TESTS = abstract1.cs \
                ainit1.cs \

Index: csharp/class/generics/Makefile.am
===================================================================
RCS file: csharp/class/generics/Makefile.am
diff -N csharp/class/generics/Makefile.am
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/Makefile.am   22 Sep 2007 13:25:18 -0000      1.1
@@ -0,0 +1,8 @@
+TESTS = class1.cs \
+               class2.cs \
+               delegate1.cs \
+               interface1.cs
+
+TESTS_ENVIRONMENT = $(SHELL) $(top_srcdir)/tools/run_test.sh
+
+all-redirect: check-TESTS

Index: csharp/class/generics/class1.cs
===================================================================
RCS file: csharp/class/generics/class1.cs
diff -N csharp/class/generics/class1.cs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/class1.cs     22 Sep 2007 13:25:18 -0000      1.1
@@ -0,0 +1,51 @@
+/*
+ * class1.cs - Test generic class declarations.
+ *
+ * Copyright (C) 2007  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
+ */
+
+namespace System
+{
+       public class Test
+       {
+       }
+
+       public interface ITest
+       {
+       }
+
+       public class Test1<T>
+       {
+       }
+
+       public class Test2<T> where T: struct
+       {
+       }
+
+       public class Test3<T> where T: class
+       {
+       }
+
+       public class Test4<T> where T: Test
+       {
+       }
+
+       public class Test5<T> where T: Test, ITest
+       {
+       }
+}
+

Index: csharp/class/generics/class1.il
===================================================================
RCS file: csharp/class/generics/class1.il
diff -N csharp/class/generics/class1.il
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/class1.il     22 Sep 2007 13:25:18 -0000      1.1
@@ -0,0 +1,93 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'System'
+{
+.class public auto ansi 'Test' extends ['.library']'System'.'Object'
+{
+.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 Test
+} // namespace System
+.namespace 'System'
+{
+.class public auto interface abstract ansi 'ITest'
+{
+} // class ITest
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test1`1'<'T'> extends ['.library']'System'.'Object'
+{
+.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 Test1`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test2`1'<valuetype 'T'> extends 
['.library']'System'.'Object'
+{
+.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 Test2`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test3`1'<class 'T'> extends 
['.library']'System'.'Object'
+{
+.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 Test3`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test4`1'<(class 'System'.'Test')'T'> extends 
['.library']'System'.'Object'
+{
+.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 Test4`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test5`1'<(class 'System'.'Test', class 
'System'.'ITest')'T'> extends ['.library']'System'.'Object'
+{
+.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 Test5`1
+} // namespace System

Index: csharp/class/generics/class1.jl
===================================================================
RCS file: csharp/class/generics/class1.jl
diff -N csharp/class/generics/class1.jl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/class1.jl     22 Sep 2007 13:25:18 -0000      1.1
@@ -0,0 +1,99 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'System'
+{
+.class public auto ansi 'Test' extends ['.library']'System'.'Object'
+{
+.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 Test
+} // namespace System
+.namespace 'System'
+{
+.class public auto interface abstract ansi 'ITest'
+{
+} // class ITest
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test1`1'<'T'> extends ['.library']'System'.'Object'
+{
+.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 Test1`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test2`1'<valuetype 'T'> extends 
['.library']'System'.'Object'
+{
+.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 Test2`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test3`1'<class 'T'> extends 
['.library']'System'.'Object'
+{
+.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 Test3`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test4`1'<(class 'System'.'Test')'T'> extends 
['.library']'System'.'Object'
+{
+.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 Test4`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test5`1'<(class 'System'.'Test', class 
'System'.'ITest')'T'> extends ['.library']'System'.'Object'
+{
+.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 Test5`1
+} // namespace System

Index: csharp/class/generics/class2.cs
===================================================================
RCS file: csharp/class/generics/class2.cs
diff -N csharp/class/generics/class2.cs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/class2.cs     22 Sep 2007 13:25:18 -0000      1.1
@@ -0,0 +1,69 @@
+/*
+ * class2.cs - Test generic nested class declarations.
+ *
+ * Copyright (C) 2007  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
+ */
+
+namespace System
+{
+       public class Test
+       {
+       }
+
+       public interface ITest
+       {
+       }
+
+       public class Test1<T>
+       {
+               public class Test1Nested
+               {
+               }
+
+               public class Test1Nested1<U>
+               {
+               }
+
+               public class Test1Nested2<T>
+               {
+               }
+       }
+
+       public class Test1<T, U> where T: struct
+       {
+               public class Test1Nested
+               {
+               }
+
+               public class Test1Nested1<U>
+               {
+               }
+
+               public class Test1Nested1<U, V>
+               {
+               }
+
+               public class Test1Nested2<T>
+               {
+               }
+
+               public class Test1Nested2<U, T>
+               {
+               }
+       }
+}
+

Index: csharp/class/generics/class2.il
===================================================================
RCS file: csharp/class/generics/class2.il
diff -N csharp/class/generics/class2.il
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/class2.il     22 Sep 2007 13:25:18 -0000      1.1
@@ -0,0 +1,134 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'System'
+{
+.class public auto ansi 'Test' extends ['.library']'System'.'Object'
+{
+.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 Test
+} // namespace System
+.namespace 'System'
+{
+.class public auto interface abstract ansi 'ITest'
+{
+} // class ITest
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test1`1'<'T'> extends ['.library']'System'.'Object'
+{
+.class nested public auto ansi 'Test1Nested'<'T'> extends 
['.library']'System'.'Object'
+{
+.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 Test1Nested
+.class nested public auto ansi 'Test1Nested1`1'<'T', 'U'> extends 
['.library']'System'.'Object'
+{
+.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 Test1Nested1`1
+.class nested public auto ansi 'Test1Nested2`1'<'<_P0>', 'T'> extends 
['.library']'System'.'Object'
+{
+.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 Test1Nested2`1
+.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 Test1`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test1`2'<valuetype 'T', 'U'> extends 
['.library']'System'.'Object'
+{
+.class nested public auto ansi 'Test1Nested'<valuetype 'T', 'U'> extends 
['.library']'System'.'Object'
+{
+.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 Test1Nested
+.class nested public auto ansi 'Test1Nested1`1'<valuetype 'T', '<_P0>', 'U'> 
extends ['.library']'System'.'Object'
+{
+.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 Test1Nested1`1
+.class nested public auto ansi 'Test1Nested1`2'<valuetype 'T', '<_P0>', 'U', 
'V'> extends ['.library']'System'.'Object'
+{
+.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 Test1Nested1`2
+.class nested public auto ansi 'Test1Nested2`1'<valuetype '<_P0>', 'U', 'T'> 
extends ['.library']'System'.'Object'
+{
+.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 Test1Nested2`1
+.class nested public auto ansi 'Test1Nested2`2'<valuetype '<_P1>', '<_P0>', 
'U', 'T'> extends ['.library']'System'.'Object'
+{
+.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 Test1Nested2`2
+.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 Test1`2
+} // namespace System

Index: csharp/class/generics/class2.jl
===================================================================
RCS file: csharp/class/generics/class2.jl
diff -N csharp/class/generics/class2.jl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/class2.jl     22 Sep 2007 13:25:18 -0000      1.1
@@ -0,0 +1,145 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'System'
+{
+.class public auto ansi 'Test' extends ['.library']'System'.'Object'
+{
+.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 Test
+} // namespace System
+.namespace 'System'
+{
+.class public auto interface abstract ansi 'ITest'
+{
+} // class ITest
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test1`1'<'T'> extends ['.library']'System'.'Object'
+{
+.class nested public auto ansi 'Test1Nested'<'T'> extends 
['.library']'System'.'Object'
+{
+.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 Test1Nested
+.class nested public auto ansi 'Test1Nested1`1'<'T', 'U'> extends 
['.library']'System'.'Object'
+{
+.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 Test1Nested1`1
+.class nested public auto ansi 'Test1Nested2`1'<'<_P0>', 'T'> extends 
['.library']'System'.'Object'
+{
+.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 Test1Nested2`1
+.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 Test1`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto ansi 'Test1`2'<valuetype 'T', 'U'> extends 
['.library']'System'.'Object'
+{
+.class nested public auto ansi 'Test1Nested'<valuetype 'T', 'U'> extends 
['.library']'System'.'Object'
+{
+.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 Test1Nested
+.class nested public auto ansi 'Test1Nested1`1'<valuetype 'T', '<_P0>', 'U'> 
extends ['.library']'System'.'Object'
+{
+.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 Test1Nested1`1
+.class nested public auto ansi 'Test1Nested1`2'<valuetype 'T', '<_P0>', 'U', 
'V'> extends ['.library']'System'.'Object'
+{
+.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 Test1Nested1`2
+.class nested public auto ansi 'Test1Nested2`1'<valuetype '<_P0>', 'U', 'T'> 
extends ['.library']'System'.'Object'
+{
+.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 Test1Nested2`1
+.class nested public auto ansi 'Test1Nested2`2'<valuetype '<_P1>', '<_P0>', 
'U', 'T'> extends ['.library']'System'.'Object'
+{
+.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 Test1Nested2`2
+.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 Test1`2
+} // namespace System

Index: csharp/class/generics/delegate1.cs
===================================================================
RCS file: csharp/class/generics/delegate1.cs
diff -N csharp/class/generics/delegate1.cs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/delegate1.cs  22 Sep 2007 13:25:18 -0000      1.1
@@ -0,0 +1,29 @@
+/*
+ * delegate1.cs - Test generic delegate declarations.
+ *
+ * Copyright (C) 2007  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
+ */
+
+namespace System
+{
+       public delegate void Action<T>(T obj);
+
+       public delegate int Comparision<T>(T x, T y);
+
+       public delegate U Converter<T, U>(T from);
+}
+

Index: csharp/class/generics/delegate1.il
===================================================================
RCS file: csharp/class/generics/delegate1.il
diff -N csharp/class/generics/delegate1.il
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/delegate1.il  22 Sep 2007 13:25:18 -0000      1.1
@@ -0,0 +1,39 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'System'
+{
+.class public auto sealed serializable ansi 'Action`1'<'T'> extends 
['.library']'System'.'MulticastDelegate'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'(class 
['.library']'System'.'Object' 'object', native int 'method') runtime managed {}
+.method public virtual hidebysig newslot instance void 'Invoke'(!0 'obj') 
runtime managed {}
+.method public virtual hidebysig newslot instance class 
['.library']'System'.'IAsyncResult' 'BeginInvoke'(!0 'obj', class 
['.library']'System'.'AsyncCallback' 'callback', class 
['.library']'System'.'Object' 'object') runtime managed {}
+.method public virtual hidebysig newslot instance void 'EndInvoke'(class 
['.library']'System'.'IAsyncResult' 'result') runtime managed {}
+} // class Action`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto sealed serializable ansi 'Comparision`1'<'T'> extends 
['.library']'System'.'MulticastDelegate'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'(class 
['.library']'System'.'Object' 'object', native int 'method') runtime managed {}
+.method public virtual hidebysig newslot instance int32 'Invoke'(!0 'x', !0 
'y') runtime managed {}
+.method public virtual hidebysig newslot instance class 
['.library']'System'.'IAsyncResult' 'BeginInvoke'(!0 'x', !0 'y', class 
['.library']'System'.'AsyncCallback' 'callback', class 
['.library']'System'.'Object' 'object') runtime managed {}
+.method public virtual hidebysig newslot instance int32 'EndInvoke'(class 
['.library']'System'.'IAsyncResult' 'result') runtime managed {}
+} // class Comparision`1
+} // namespace System
+.namespace 'System'
+{
+.class public auto sealed serializable ansi 'Converter`2'<'T', 'U'> extends 
['.library']'System'.'MulticastDelegate'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'(class 
['.library']'System'.'Object' 'object', native int 'method') runtime managed {}
+.method public virtual hidebysig newslot instance !1 'Invoke'(!0 'from') 
runtime managed {}
+.method public virtual hidebysig newslot instance class 
['.library']'System'.'IAsyncResult' 'BeginInvoke'(!0 'from', class 
['.library']'System'.'AsyncCallback' 'callback', class 
['.library']'System'.'Object' 'object') runtime managed {}
+.method public virtual hidebysig newslot instance !1 'EndInvoke'(class 
['.library']'System'.'IAsyncResult' 'result') runtime managed {}
+} // class Converter`2
+} // namespace System

Index: csharp/class/generics/delegate1.jerr
===================================================================
RCS file: csharp/class/generics/delegate1.jerr
diff -N csharp/class/generics/delegate1.jerr
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/delegate1.jerr        22 Sep 2007 13:25:19 -0000      
1.1
@@ -0,0 +1,3 @@
+./delegate1.cs:23: delegate definitions are not permitted with Java output
+./delegate1.cs:25: delegate definitions are not permitted with Java output
+./delegate1.cs:27: delegate definitions are not permitted with Java output

Index: csharp/class/generics/interface1.cs
===================================================================
RCS file: csharp/class/generics/interface1.cs
diff -N csharp/class/generics/interface1.cs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/interface1.cs 22 Sep 2007 13:25:19 -0000      1.1
@@ -0,0 +1,28 @@
+/*
+ * interface1.cs - Test generic interface declarations.
+ *
+ * Copyright (C) 2007  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
+ */
+
+namespace System
+{
+       public interface IComparable<T>
+       {
+               int CompareTo(T obj);
+       }
+}
+

Index: csharp/class/generics/interface1.il
===================================================================
RCS file: csharp/class/generics/interface1.il
diff -N csharp/class/generics/interface1.il
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/interface1.il 22 Sep 2007 13:25:19 -0000      1.1
@@ -0,0 +1,14 @@
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'System'
+{
+.class public auto interface abstract ansi 'IComparable`1'<'T'>
+{
+.method public virtual hidebysig newslot abstract instance int32 
'CompareTo'(!0 'obj') cil managed 
+{
+} // method CompareTo
+} // class IComparable`1
+} // namespace System

Index: csharp/class/generics/interface1.jl
===================================================================
RCS file: csharp/class/generics/interface1.jl
diff -N csharp/class/generics/interface1.jl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/interface1.jl 22 Sep 2007 13:25:19 -0000      1.1
@@ -0,0 +1,14 @@
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'System'
+{
+.class public auto interface abstract ansi 'IComparable`1'<'T'>
+{
+.method public virtual hidebysig newslot abstract instance int32 
'CompareTo'(!0 'obj') cil managed java 
+{
+} // method CompareTo
+} // class IComparable`1
+} // namespace System




reply via email to

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