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

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

[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET Compiler tests (cscc) br


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET Compiler tests (cscc) branch, master, updated. 887ff658672b3768e2207a8e434a690ca493ca4c
Date: Sat, 01 Aug 2009 10:01:14 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET Compiler tests (cscc)".

The branch, master has been updated
       via  887ff658672b3768e2207a8e434a690ca493ca4c (commit)
      from  1fd36c6e61e101ccb225ceca9b6130999c4042b6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/cscctest.git/commit/?id=887ff658672b3768e2207a8e434a690ca493ca4c

commit 887ff658672b3768e2207a8e434a690ca493ca4c
Author: Klaus Treichel <address@hidden>
Date:   Sat Aug 1 12:00:37 2009 +0200

    Add tests for partial type declarations.

diff --git a/ChangeLog b/ChangeLog
index 3f8d8bf..20acca7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2009-08-01  Klaus Treichel  <address@hidden>
+
+       * csharp/class/Makefile.am: Add partial.cs to partial5.cs to the
+       executed tests.
+
+       * csharp/class/partial1.cs, csharp/class/partial1.il,
+       csharp/class/partial1.jl, csharp/class/partial2.cs,
+       csharp/class/partial2.il, csharp/class/partial2.jl,
+       csharp/class/partial3.cs, csharp/class/partial3.il,
+       csharp/class/partial3.jl, csharp/class/partial4.cs,
+       csharp/class/partial4.il, csharp/class/partial4.jl,
+       csharp/class/partial5.cs, csharp/class/partial5.il,
+       csharp/class/partial5.jl: Add tests for partial type declarations.
+
 2009-07-27  Klaus Treichel  <address@hidden>
 
        * csharp/class/Makefile.am: Add static1.cs to the executed tests.
diff --git a/csharp/class/Makefile.am b/csharp/class/Makefile.am
index 1e49173..630eda2 100644
--- a/csharp/class/Makefile.am
+++ b/csharp/class/Makefile.am
@@ -47,6 +47,11 @@ TESTS = abstract1.cs \
                member_access1.cs \
                member_access2.cs \
                nested1.cs \
+               partial1.cs \
+               partial2.cs \
+               partial3.cs \
+               partial4.cs \
+               partial5.cs \
                property1.cs \
                property2.cs \
                property3.cs \
diff --git a/csharp/class/partial1.cs b/csharp/class/partial1.cs
new file mode 100644
index 0000000..428f454
--- /dev/null
+++ b/csharp/class/partial1.cs
@@ -0,0 +1,33 @@
+/*
+ * partial1.cs - Test partial class declarations.
+ *
+ * Copyright (C) 2009  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 Test
+{
+       public partial class Test1
+       {
+       }
+}
+
+namespace Test1
+{
+       public partial class Test1
+       {
+       }
+}
\ No newline at end of file
diff --git a/csharp/class/partial1.il b/csharp/class/partial1.il
new file mode 100644
index 0000000..64443f3
--- /dev/null
+++ b/csharp/class/partial1.il
@@ -0,0 +1,35 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test'
+{
+.class public auto ansi 'Test1' 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
+} // namespace Test
+.namespace 'Test1'
+{
+.class public auto ansi 'Test1' 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
+} // namespace Test1
diff --git a/csharp/class/partial1.jl b/csharp/class/partial1.jl
new file mode 100644
index 0000000..596f885
--- /dev/null
+++ b/csharp/class/partial1.jl
@@ -0,0 +1,37 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test'
+{
+.class public auto ansi 'Test1' 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
+} // namespace Test
+.namespace 'Test1'
+{
+.class public auto ansi 'Test1' 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
+} // namespace Test1
diff --git a/csharp/class/partial2.cs b/csharp/class/partial2.cs
new file mode 100644
index 0000000..efb8478
--- /dev/null
+++ b/csharp/class/partial2.cs
@@ -0,0 +1,46 @@
+/*
+ * partial2.cs - Test partial class declarations.
+ *
+ * Copyright (C) 2009  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 Test1
+{
+       public interface ITest
+       {
+               void f1(ITest i);
+       }
+}
+
+namespace Test
+{
+       public partial class Test1
+       {
+       }
+}
+
+namespace Test
+{
+       using Test1;
+
+       public partial class Test1: ITest
+       {
+               public void f1(ITest i)
+               {
+               }
+       }
+}
\ No newline at end of file
diff --git a/csharp/class/partial2.il b/csharp/class/partial2.il
new file mode 100644
index 0000000..24b9e7d
--- /dev/null
+++ b/csharp/class/partial2.il
@@ -0,0 +1,36 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test1'
+{
+.class public auto interface abstract ansi 'ITest'
+{
+.method public virtual hidebysig newslot abstract instance void 'f1'(class 
'Test1'.'ITest' 'i') cil managed 
+{
+} // method f1
+} // class ITest
+} // namespace Test1
+.namespace 'Test'
+{
+.class public auto ansi 'Test1' extends ['.library']'System'.'Object' 
implements 'Test1'.'ITest'
+{
+.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 public final virtual hidebysig newslot instance void 'f1'(class 
'Test1'.'ITest' 'i') cil managed 
+{
+       ret
+       .maxstack 0
+} // method f1
+} // class Test1
+} // namespace Test
diff --git a/csharp/class/partial2.jl b/csharp/class/partial2.jl
new file mode 100644
index 0000000..c326af2
--- /dev/null
+++ b/csharp/class/partial2.jl
@@ -0,0 +1,38 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test1'
+{
+.class public auto interface abstract ansi 'ITest'
+{
+.method public virtual hidebysig newslot abstract instance void 'f1'(class 
'Test1'.'ITest' 'i') cil managed java 
+{
+} // method f1
+} // class ITest
+} // namespace Test1
+.namespace 'Test'
+{
+.class public auto ansi 'Test1' extends ['.library']'System'.'Object' 
implements 'Test1'.'ITest'
+{
+.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 public final virtual hidebysig newslot instance void 'f1'(class 
'Test1'.'ITest' 'i') cil managed java 
+{
+       return
+       .locals 2
+       .maxstack 0
+} // method f1
+} // class Test1
+} // namespace Test
diff --git a/csharp/class/partial3.cs b/csharp/class/partial3.cs
new file mode 100644
index 0000000..f156ad6
--- /dev/null
+++ b/csharp/class/partial3.cs
@@ -0,0 +1,48 @@
+/*
+ * partial3.cs - Test partial class declarations.
+ *
+ * Copyright (C) 2009  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 Test1
+{
+       public class Test2
+       {
+               public static Test2 f1()
+               {
+                       return new Test2();
+               }
+       }
+}
+
+namespace Test
+{
+       public partial class Test1
+       {
+               static int i = 12;
+       }
+}
+
+namespace Test
+{
+       using Test1;
+
+       public partial class Test1
+       {
+               static Test2 test2 = Test2.f1();
+       }
+}
\ No newline at end of file
diff --git a/csharp/class/partial3.il b/csharp/class/partial3.il
new file mode 100644
index 0000000..a62eb33
--- /dev/null
+++ b/csharp/class/partial3.il
@@ -0,0 +1,52 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test1'
+{
+.class public auto ansi 'Test2' extends ['.library']'System'.'Object'
+{
+.method public static hidebysig class 'Test1'.'Test2' 'f1'() cil managed 
+{
+       newobj  instance void 'Test1'.'Test2'::'.ctor'()
+       ret
+       .maxstack 1
+} // method f1
+.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
+} // namespace Test1
+.namespace 'Test'
+{
+.class public auto ansi beforefieldinit 'Test1' extends 
['.library']'System'.'Object'
+{
+.field private static int32 'i'
+.method public hidebysig specialname rtspecialname instance void '.ctor'() cil 
managed 
+{
+       ldarg.0
+       call    instance void ['.library']'System'.'Object'::'.ctor'()
+       ret
+       .maxstack 1
+} // method .ctor
+.field private static class 'Test1'.'Test2' 'test2'
+.method private static hidebysig specialname rtspecialname void '.cctor'() cil 
managed 
+{
+       ldc.i4.s        12
+       stsfld  int32 'Test'.'Test1'::'i'
+       call    class 'Test1'.'Test2' 'Test1'.'Test2'::'f1'()
+       stsfld  class 'Test1'.'Test2' 'Test'.'Test1'::'test2'
+       ret
+       .maxstack 1
+} // method .cctor
+} // class Test1
+} // namespace Test
diff --git a/csharp/class/partial3.jl b/csharp/class/partial3.jl
new file mode 100644
index 0000000..9457250
--- /dev/null
+++ b/csharp/class/partial3.jl
@@ -0,0 +1,58 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test1'
+{
+.class public auto ansi 'Test2' extends ['.library']'System'.'Object'
+{
+.method public static hidebysig class 'Test1'.'Test2' 'f1'() cil managed java 
+{
+       new     'Test1'.'Test2'
+       dup
+       invokespecial   instance void 'Test1'.'Test2'::'.ctor'()
+       areturn
+       .locals 0
+       .maxstack 2
+} // method f1
+.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
+} // namespace Test1
+.namespace 'Test'
+{
+.class public auto ansi beforefieldinit 'Test1' extends 
['.library']'System'.'Object'
+{
+.field private static int32 'i'
+.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
+.field private static class 'Test1'.'Test2' 'test2'
+.method private static hidebysig specialname rtspecialname void '.cctor'() cil 
managed java 
+{
+       bipush  12
+       putstatic       int32 'Test'.'Test1'::'i'
+       invokestatic    class 'Test1'.'Test2' 'Test1'.'Test2'::'f1'()
+       putstatic       class 'Test1'.'Test2' 'Test'.'Test1'::'test2'
+       return
+       .locals 0
+       .maxstack 1
+} // method .cctor
+} // class Test1
+} // namespace Test
diff --git a/csharp/class/partial4.cs b/csharp/class/partial4.cs
new file mode 100644
index 0000000..2a90750
--- /dev/null
+++ b/csharp/class/partial4.cs
@@ -0,0 +1,97 @@
+/*
+ * partial4.cs - Test partial class declarations.
+ *
+ * Copyright (C) 2009  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 Test
+{
+       public partial class Test1
+       {
+       }
+
+       partial class Test2
+       {
+       }
+
+       partial class Test3
+       {
+               partial class Test3Nested
+               {
+               }
+       }
+
+       public partial class Test4
+       {
+       }
+
+       internal partial class Test5
+       {
+       }
+
+       partial class Test6
+       {
+               internal partial class Test6Nested
+               {
+               }
+       }
+
+       partial class Test7
+       {
+       }
+
+}
+
+namespace Test
+{
+       public static partial class Test1
+       {
+       }
+
+       internal partial class Test2
+       {
+       }
+
+       internal partial class Test3
+       {
+               private partial class Test3Nested
+               {
+               }
+       }
+
+       partial class Test4
+       {
+       }
+
+       partial class Test5
+       {
+       }
+
+       partial class Test6
+       {
+               partial class Test6Nested
+               {
+               }
+       }
+
+       abstract partial class Test7
+       {
+               protected internal class Test7Nested
+               {
+               }
+       }
+}
\ No newline at end of file
diff --git a/csharp/class/partial4.il b/csharp/class/partial4.il
new file mode 100644
index 0000000..3f931c9
--- /dev/null
+++ b/csharp/class/partial4.il
@@ -0,0 +1,123 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test'
+{
+.class public auto abstract sealed ansi 'Test1' extends 
['.library']'System'.'Object'
+{
+} // class Test1
+} // namespace Test
+.namespace 'Test'
+{
+.class private auto ansi 'Test2' 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
+} // namespace Test
+.namespace 'Test'
+{
+.class private auto ansi 'Test3' extends ['.library']'System'.'Object'
+{
+.class nested private auto ansi 'Test3Nested' 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 Test3Nested
+.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
+} // namespace Test
+.namespace 'Test'
+{
+.class public auto ansi 'Test4' 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
+} // namespace Test
+.namespace 'Test'
+{
+.class private auto ansi 'Test5' 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
+} // namespace Test
+.namespace 'Test'
+{
+.class private auto ansi 'Test6' extends ['.library']'System'.'Object'
+{
+.class nested assembly auto ansi 'Test6Nested' 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 Test6Nested
+.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 Test6
+} // namespace Test
+.namespace 'Test'
+{
+.class private auto abstract ansi 'Test7' extends ['.library']'System'.'Object'
+{
+.method family hidebysig specialname rtspecialname instance void '.ctor'() cil 
managed 
+{
+       ldarg.0
+       call    instance void ['.library']'System'.'Object'::'.ctor'()
+       ret
+       .maxstack 1
+} // method .ctor
+.class nested famorassem auto ansi 'Test7Nested' 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 Test7Nested
+} // class Test7
+} // namespace Test
diff --git a/csharp/class/partial4.jl b/csharp/class/partial4.jl
new file mode 100644
index 0000000..eed914b
--- /dev/null
+++ b/csharp/class/partial4.jl
@@ -0,0 +1,132 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test'
+{
+.class public auto abstract sealed ansi 'Test1' extends 
['.library']'System'.'Object'
+{
+} // class Test1
+} // namespace Test
+.namespace 'Test'
+{
+.class private auto ansi 'Test2' 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
+} // namespace Test
+.namespace 'Test'
+{
+.class private auto ansi 'Test3' extends ['.library']'System'.'Object'
+{
+.class nested private auto ansi 'Test3Nested' 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 Test3Nested
+.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
+} // namespace Test
+.namespace 'Test'
+{
+.class public auto ansi 'Test4' 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
+} // namespace Test
+.namespace 'Test'
+{
+.class private auto ansi 'Test5' 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
+} // namespace Test
+.namespace 'Test'
+{
+.class private auto ansi 'Test6' extends ['.library']'System'.'Object'
+{
+.class nested assembly auto ansi 'Test6Nested' 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 Test6Nested
+.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 Test6
+} // namespace Test
+.namespace 'Test'
+{
+.class private auto abstract ansi 'Test7' extends ['.library']'System'.'Object'
+{
+.method family 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 nested famorassem auto ansi 'Test7Nested' 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 Test7Nested
+} // class Test7
+} // namespace Test
diff --git a/csharp/class/partial5.cs b/csharp/class/partial5.cs
new file mode 100644
index 0000000..4973e0e
--- /dev/null
+++ b/csharp/class/partial5.cs
@@ -0,0 +1,51 @@
+/*
+ * partial5.cs - Test partial class declarations.
+ *
+ * Copyright (C) 2009  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 Test
+{
+       public partial class Test1
+       {
+       }
+}
+
+namespace Test9
+{
+       public class Test9
+       {
+               public static int I = 9;
+
+               public static Test9 f()
+               {
+                       return new Test9();
+               }
+       }
+}
+
+namespace Test
+{
+       using Test9;
+
+       public partial class Test1
+       {
+               public static int I = Test9.I;
+               public Test9 T = Test9.f();
+       }
+
+}
\ No newline at end of file
diff --git a/csharp/class/partial5.il b/csharp/class/partial5.il
new file mode 100644
index 0000000..f694380
--- /dev/null
+++ b/csharp/class/partial5.il
@@ -0,0 +1,61 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test'
+{
+.class public auto ansi beforefieldinit 'Test1' extends 
['.library']'System'.'Object'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'() cil 
managed 
+{
+       ldarg.0
+       call    class 'Test9'.'Test9' 'Test9'.'Test9'::'f'()
+       stfld   class 'Test9'.'Test9' 'Test'.'Test1'::'T'
+       ldarg.0
+       call    instance void ['.library']'System'.'Object'::'.ctor'()
+       ret
+       .maxstack 2
+} // method .ctor
+.field public static int32 'I'
+.field public class 'Test9'.'Test9' 'T'
+.method private static hidebysig specialname rtspecialname void '.cctor'() cil 
managed 
+{
+       ldsfld  int32 'Test9'.'Test9'::'I'
+       stsfld  int32 'Test'.'Test1'::'I'
+       ret
+       .maxstack 1
+} // method .cctor
+} // class Test1
+} // namespace Test
+.namespace 'Test9'
+{
+.class public auto ansi beforefieldinit 'Test9' extends 
['.library']'System'.'Object'
+{
+.field public static int32 'I'
+.method public static hidebysig class 'Test9'.'Test9' 'f'() cil managed 
+{
+       newobj  instance void 'Test9'.'Test9'::'.ctor'()
+       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
+.method private static hidebysig specialname rtspecialname void '.cctor'() cil 
managed 
+{
+       ldc.i4.s        9
+       stsfld  int32 'Test9'.'Test9'::'I'
+       ret
+       .maxstack 1
+} // method .cctor
+} // class Test9
+} // namespace Test9
diff --git a/csharp/class/partial5.jl b/csharp/class/partial5.jl
new file mode 100644
index 0000000..9729e5e
--- /dev/null
+++ b/csharp/class/partial5.jl
@@ -0,0 +1,68 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test'
+{
+.class public auto ansi beforefieldinit 'Test1' extends 
['.library']'System'.'Object'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'() cil 
managed java 
+{
+       aload_0
+       invokestatic    class 'Test9'.'Test9' 'Test9'.'Test9'::'f'()
+       putfield        class 'Test9'.'Test9' 'Test'.'Test1'::'T'
+       aload_0
+       invokespecial   instance void ['.library']'System'.'Object'::'.ctor'()
+       return
+       .locals 1
+       .maxstack 2
+} // method .ctor
+.field public static int32 'I'
+.field public class 'Test9'.'Test9' 'T'
+.method private static hidebysig specialname rtspecialname void '.cctor'() cil 
managed java 
+{
+       getstatic       int32 'Test9'.'Test9'::'I'
+       putstatic       int32 'Test'.'Test1'::'I'
+       return
+       .locals 0
+       .maxstack 1
+} // method .cctor
+} // class Test1
+} // namespace Test
+.namespace 'Test9'
+{
+.class public auto ansi beforefieldinit 'Test9' extends 
['.library']'System'.'Object'
+{
+.field public static int32 'I'
+.method public static hidebysig class 'Test9'.'Test9' 'f'() cil managed java 
+{
+       new     'Test9'.'Test9'
+       dup
+       invokespecial   instance void 'Test9'.'Test9'::'.ctor'()
+       areturn
+       .locals 0
+       .maxstack 2
+} // 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
+.method private static hidebysig specialname rtspecialname void '.cctor'() cil 
managed java 
+{
+       bipush  9
+       putstatic       int32 'Test9'.'Test9'::'I'
+       return
+       .locals 0
+       .maxstack 1
+} // method .cctor
+} // class Test9
+} // namespace Test9

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                      |   14 +++
 csharp/class/Makefile.am                       |    5 +
 csharp/class/{const1.cs => partial1.cs}        |   19 ++--
 csharp/{parser/attrs2.il => class/partial1.il} |   14 ++-
 csharp/{parser/attrs2.jl => class/partial1.jl} |   14 ++-
 csharp/{expr/new3.cs => class/partial2.cs}     |   30 +++---
 csharp/class/partial2.il                       |   36 +++++++
 csharp/class/partial2.jl                       |   38 +++++++
 csharp/{expr/new3.cs => class/partial3.cs}     |   32 ++++---
 csharp/class/partial3.il                       |   52 +++++++++
 csharp/class/partial3.jl                       |   58 +++++++++++
 csharp/class/{static1.cs => partial4.cs}       |   91 ++++++++++++-----
 csharp/class/partial4.il                       |  123 ++++++++++++++++++++++
 csharp/class/partial4.jl                       |  132 ++++++++++++++++++++++++
 csharp/{expr/new3.cs => class/partial5.cs}     |   35 ++++---
 csharp/class/partial5.il                       |   61 +++++++++++
 csharp/class/partial5.jl                       |   68 ++++++++++++
 17 files changed, 739 insertions(+), 83 deletions(-)
 copy csharp/class/{const1.cs => partial1.cs} (79%)
 copy csharp/{parser/attrs2.il => class/partial1.il} (66%)
 copy csharp/{parser/attrs2.jl => class/partial1.jl} (68%)
 copy csharp/{expr/new3.cs => class/partial2.cs} (75%)
 create mode 100644 csharp/class/partial2.il
 create mode 100644 csharp/class/partial2.jl
 copy csharp/{expr/new3.cs => class/partial3.cs} (72%)
 create mode 100644 csharp/class/partial3.il
 create mode 100644 csharp/class/partial3.jl
 copy csharp/class/{static1.cs => partial4.cs} (54%)
 create mode 100644 csharp/class/partial4.il
 create mode 100644 csharp/class/partial4.jl
 copy csharp/{expr/new3.cs => class/partial5.cs} (70%)
 create mode 100644 csharp/class/partial5.il
 create mode 100644 csharp/class/partial5.jl


hooks/post-receive
-- 
DotGNU Portable.NET Compiler tests (cscc)




reply via email to

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