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. 1fd36c6e61e101ccb225ceca9b6130999c4042b6
Date: Mon, 27 Jul 2009 17:52:39 +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  1fd36c6e61e101ccb225ceca9b6130999c4042b6 (commit)
      from  140861efbebfc121558f750b3be8ef44bb71715c (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=1fd36c6e61e101ccb225ceca9b6130999c4042b6

commit 1fd36c6e61e101ccb225ceca9b6130999c4042b6
Author: Klaus Treichel <address@hidden>
Date:   Mon Jul 27 19:52:08 2009 +0200

    Add test for static classes

diff --git a/ChangeLog b/ChangeLog
index 72ae0d3..3f8d8bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-07-27  Klaus Treichel  <address@hidden>
+
+       * csharp/class/Makefile.am: Add static1.cs to the executed tests.
+
+       * csharp/class/static1.cs, csharp/class/static1.il,
+       csharp/class/static1.jerr: Add tests for static classes.
+
 2009-07-05  Klaus Treichel  <address@hidden>
 
        * .gitignore, tools/.gitignore: Added
diff --git a/csharp/class/Makefile.am b/csharp/class/Makefile.am
index 485d135..1e49173 100644
--- a/csharp/class/Makefile.am
+++ b/csharp/class/Makefile.am
@@ -53,6 +53,7 @@ TESTS = abstract1.cs \
                property4.cs \
                property5.cs \
                property6.cs \
+               static1.cs \
                type1.cs \
                type2.cs
 
diff --git a/csharp/class/static1.cs b/csharp/class/static1.cs
new file mode 100644
index 0000000..97e7eb9
--- /dev/null
+++ b/csharp/class/static1.cs
@@ -0,0 +1,58 @@
+/*
+ * static1.cs - Test static 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 delegate int E();
+
+       public static class Test1
+       {
+               static int g = 1;
+               public static int H = 2;
+               const int I = 3;
+               public const int J = 4;
+
+               public static int G
+               {
+                       get
+                       {
+                               return g;
+                       }
+                       set
+                       {
+                               g = value;
+                       }
+               }
+
+               public static event E E;
+
+               public static int this[int i]
+               {
+                       get
+                       {
+                               return i;
+                       }
+                       set
+                       {
+                               // Nothing
+                       }
+               }
+       }
+}
diff --git a/csharp/class/static1.il b/csharp/class/static1.il
new file mode 100644
index 0000000..7816a3e
--- /dev/null
+++ b/csharp/class/static1.il
@@ -0,0 +1,99 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test'
+{
+.class public auto sealed serializable ansi 'E' 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'() runtime 
managed {}
+.method public virtual hidebysig newslot instance class 
['.library']'System'.'IAsyncResult' 'BeginInvoke'(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 E
+} // namespace Test
+.namespace 'Test'
+{
+.class public auto abstract sealed ansi beforefieldinit 'Test1' extends 
['.library']'System'.'Object'
+{
+.custom instance void 
['.library']'System.Reflection'.'DefaultMemberAttribute'::'.ctor'(class 
['.library']'System'.'String') = (01 00 04 49 74 65 6D 00 00)
+.field private static int32 'g'
+.field public static int32 'H'
+.field private static literal int32 'I' = int32(0x00000003)
+.field public static literal int32 'J' = int32(0x00000004)
+.method public static hidebysig specialname int32 'get_G'() cil managed 
+{
+       ldsfld  int32 'Test'.'Test1'::'g'
+       ret
+       .maxstack 1
+} // method get_G
+.method public static hidebysig specialname void 'set_G'(int32 'value') cil 
managed 
+{
+       ldarg.0
+       stsfld  int32 'Test'.'Test1'::'g'
+       ret
+       .maxstack 1
+} // method set_G
+.property int32 'G'()
+{
+       .get int32 'Test'.'Test1'::'get_G'()
+       .set void 'Test'.'Test1'::'set_G'(int32)
+} // property G
+.method public static hidebysig specialname void 'add_E'(class 'Test'.'E' 
'value') cil managed 
+{
+       ldsfld  class 'Test'.'E' 'Test'.'Test1'::'E'
+       ldarg.0
+       call    class [.library]System.Delegate 
[.library]System.Delegate::Combine(class [.library]System.Delegate, class 
[.library]System.Delegate)
+       castclass       'Test'.'E'
+       stsfld  class 'Test'.'E' 'Test'.'Test1'::'E'
+       ret
+       .maxstack 2
+} // method add_E
+.method public static hidebysig specialname void 'remove_E'(class 'Test'.'E' 
'value') cil managed 
+{
+       ldsfld  class 'Test'.'E' 'Test'.'Test1'::'E'
+       ldarg.0
+       call    class [.library]System.Delegate 
[.library]System.Delegate::Remove(class [.library]System.Delegate, class 
[.library]System.Delegate)
+       castclass       'Test'.'E'
+       stsfld  class 'Test'.'E' 'Test'.'Test1'::'E'
+       ret
+       .maxstack 2
+} // method remove_E
+.field private static class 'Test'.'E' 'E'
+.event 'Test'.'E' 'E'
+{
+       .addon void 'Test'.'Test1'::'add_E'(class 'Test'.'E')
+       .removeon void 'Test'.'Test1'::'remove_E'(class 'Test'.'E')
+} // event E
+.method public static hidebysig specialname int32 'get_Item'(int32 'i') cil 
managed 
+{
+       ldarg.0
+       ret
+       .maxstack 1
+} // method get_Item
+.method public static hidebysig specialname void 'set_Item'(int32 'i', int32 
'value') cil managed 
+{
+       ret
+       .maxstack 0
+} // method set_Item
+.property int32 'Item'(int32)
+{
+       .get int32 'Test'.'Test1'::'get_Item'(int32)
+       .set void 'Test'.'Test1'::'set_Item'(int32, int32)
+} // property Item
+.method private static hidebysig specialname rtspecialname void '.cctor'() cil 
managed 
+{
+       ldc.i4.1
+       stsfld  int32 'Test'.'Test1'::'g'
+       ldc.i4.2
+       stsfld  int32 'Test'.'Test1'::'H'
+       ret
+       .maxstack 1
+} // method .cctor
+} // class Test1
+} // namespace Test
diff --git a/csharp/class/static1.jerr b/csharp/class/static1.jerr
new file mode 100644
index 0000000..0f2d17a
--- /dev/null
+++ b/csharp/class/static1.jerr
@@ -0,0 +1 @@
+./static1.cs:23: delegate definitions are not permitted with Java output

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

Summary of changes:
 ChangeLog                                 |    7 ++
 csharp/class/Makefile.am                  |    1 +
 csharp/{expr/new3.cs => class/static1.cs} |   46 +++++++++-----
 csharp/class/static1.il                   |   99 +++++++++++++++++++++++++++++
 csharp/class/static1.jerr                 |    1 +
 5 files changed, 139 insertions(+), 15 deletions(-)
 copy csharp/{expr/new3.cs => class/static1.cs} (64%)
 create mode 100644 csharp/class/static1.il
 create mode 100644 csharp/class/static1.jerr


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




reply via email to

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