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. 0b659650702168bcd201738b1ba659ae826ecd05
Date: Thu, 13 Aug 2009 18:09:10 +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  0b659650702168bcd201738b1ba659ae826ecd05 (commit)
      from  f8deb05f78213a367aabf48f8e11c6c911815b37 (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=0b659650702168bcd201738b1ba659ae826ecd05

commit 0b659650702168bcd201738b1ba659ae826ecd05
Author: Klaus Treichel <address@hidden>
Date:   Thu Aug 13 20:08:41 2009 +0200

    Add tests for declaration of the same interface multiple times in
    a base class list.

diff --git a/csharp/class/Makefile.am b/csharp/class/Makefile.am
index 630eda2..a723555 100644
--- a/csharp/class/Makefile.am
+++ b/csharp/class/Makefile.am
@@ -4,6 +4,7 @@ TESTS = abstract1.cs \
                access1.cs \
                access2.cs \
                ainit1.cs \
+               class1.cs \
                const1.cs \
                const2.cs \
                constructor1.cs \
@@ -52,6 +53,7 @@ TESTS = abstract1.cs \
                partial3.cs \
                partial4.cs \
                partial5.cs \
+               partial6.cs \
                property1.cs \
                property2.cs \
                property3.cs \
diff --git a/csharp/class/class1.cs b/csharp/class/class1.cs
new file mode 100644
index 0000000..c160dc6
--- /dev/null
+++ b/csharp/class/class1.cs
@@ -0,0 +1,39 @@
+/*
+ * class1.cs - Test invalid class declarations with interface multiple times
+ *                        in the base class list.
+ *
+ * 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 interface ITest
+       {
+       }
+
+       public interface ITest<T>
+       {
+       }
+
+       public class Test1 : ITest, ITest
+       {
+       }
+
+       public class Test2 : ITest<int>, ITest<int>
+       {
+       }
+}
diff --git a/csharp/class/class1.err b/csharp/class/class1.err
new file mode 100644
index 0000000..da8a24d
--- /dev/null
+++ b/csharp/class/class1.err
@@ -0,0 +1,2 @@
+./class1.cs:32: interface declared multiple times in implement list
+./class1.cs:37: interface declared multiple times in implement list
diff --git a/csharp/class/class1.jerr b/csharp/class/class1.jerr
new file mode 100644
index 0000000..da8a24d
--- /dev/null
+++ b/csharp/class/class1.jerr
@@ -0,0 +1,2 @@
+./class1.cs:32: interface declared multiple times in implement list
+./class1.cs:37: interface declared multiple times in implement list
diff --git a/csharp/class/partial6.cs b/csharp/class/partial6.cs
new file mode 100644
index 0000000..a3e090a
--- /dev/null
+++ b/csharp/class/partial6.cs
@@ -0,0 +1,49 @@
+/*
+ * 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 interface ITest
+       {
+       }
+
+       public interface ITest<T>
+       {
+       }
+
+       public partial class Test1 : ITest
+       {
+       }
+
+       public partial class Test2 : ITest<int>
+       {
+       }
+}
+
+namespace Test
+{
+       public partial class Test1 : ITest
+       {
+       }
+
+       public partial class Test2 : ITest<int>
+       {
+       }
+}
\ No newline at end of file
diff --git a/csharp/class/partial6.il b/csharp/class/partial6.il
new file mode 100644
index 0000000..8256a31
--- /dev/null
+++ b/csharp/class/partial6.il
@@ -0,0 +1,47 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test'
+{
+.class public auto interface abstract ansi 'ITest'
+{
+} // class ITest
+} // namespace Test
+.namespace 'Test'
+{
+.class public auto interface abstract ansi 'ITest`1'<'T'>
+{
+} // class ITest`1
+} // namespace Test
+.namespace 'Test'
+{
+.class public auto ansi 'Test1' extends ['.library']'System'.'Object' 
implements 'Test'.'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
+} // class Test1
+} // namespace Test
+.namespace 'Test'
+{
+.class public auto ansi 'Test2' extends ['.library']'System'.'Object' 
implements class 'Test'.'ITest`1'<int32>
+{
+.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
diff --git a/csharp/class/partial6.jl b/csharp/class/partial6.jl
new file mode 100644
index 0000000..feae6ba
--- /dev/null
+++ b/csharp/class/partial6.jl
@@ -0,0 +1,49 @@
+.assembly extern '.library'
+{
+       .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+       .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'Test'
+{
+.class public auto interface abstract ansi 'ITest'
+{
+} // class ITest
+} // namespace Test
+.namespace 'Test'
+{
+.class public auto interface abstract ansi 'ITest`1'<'T'>
+{
+} // class ITest`1
+} // namespace Test
+.namespace 'Test'
+{
+.class public auto ansi 'Test1' extends ['.library']'System'.'Object' 
implements 'Test'.'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
+} // class Test1
+} // namespace Test
+.namespace 'Test'
+{
+.class public auto ansi 'Test2' extends ['.library']'System'.'Object' 
implements class 'Test'.'ITest`1'<int32>
+{
+.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

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

Summary of changes:
 csharp/class/Makefile.am                  |    2 ++
 csharp/class/{partial2.cs => class1.cs}   |   25 +++++++++----------------
 csharp/class/class1.err                   |    2 ++
 csharp/class/class1.jerr                  |    2 ++
 csharp/class/{partial5.cs => partial6.cs} |   28 +++++++++++++---------------
 csharp/class/{partial1.il => partial6.il} |   22 +++++++++++++++++-----
 csharp/class/{partial1.jl => partial6.jl} |   22 +++++++++++++++++-----
 7 files changed, 62 insertions(+), 41 deletions(-)
 copy csharp/class/{partial2.cs => class1.cs} (79%)
 create mode 100644 csharp/class/class1.err
 create mode 100644 csharp/class/class1.jerr
 copy csharp/class/{partial5.cs => partial6.cs} (77%)
 copy csharp/class/{partial1.il => partial6.il} (59%)
 copy csharp/class/{partial1.jl => partial6.jl} (61%)


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




reply via email to

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