[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] cscctest ChangeLog csharp/stmt/Makefile.am csha...
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] cscctest ChangeLog csharp/stmt/Makefile.am csha... |
Date: |
Wed, 30 May 2007 06:26:10 +0000 |
CVSROOT: /cvsroot/dotgnu-pnet
Module name: cscctest
Changes by: Klaus Treichel <ktreichel> 07/05/30 06:26:10
Modified files:
. : ChangeLog
csharp/stmt : Makefile.am
Added files:
csharp/stmt : using_namespace1.cs using_namespace1.il
using_namespace1.jl using_namespace2.cs
using_namespace2.err using_namespace2.jerr
using_namespace3.cs using_namespace3.il
using_namespace3.jl using_namespace4.cs
using_namespace4.err using_namespace4.jerr
using_namespace5.cs using_namespace5.il
using_namespace5.jl using_namespace6.cs
using_namespace6.il using_namespace6.jl
Log message:
Add new tests for the using namespace directive.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/cscctest/ChangeLog?cvsroot=dotgnu-pnet&r1=1.167&r2=1.168
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/Makefile.am?cvsroot=dotgnu-pnet&r1=1.16&r2=1.17
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace1.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace1.il?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace1.jl?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace2.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace2.err?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace2.jerr?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace3.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace3.il?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace3.jl?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace4.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace4.err?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace4.jerr?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace5.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace5.il?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace5.jl?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace6.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace6.il?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/stmt/using_namespace6.jl?cvsroot=dotgnu-pnet&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/ChangeLog,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -b -r1.167 -r1.168
--- ChangeLog 29 May 2007 15:24:03 -0000 1.167
+++ ChangeLog 30 May 2007 06:26:06 -0000 1.168
@@ -1,3 +1,19 @@
+2007-05-30 Klaus Treichel <address@hidden>
+
+ * csharp/stmt/Makefile.am: Add the new tests for the using namespace
+ directive to the executing tests.
+
+ * csharp/stmt/using_namespace1.cs, csharp/stmt/using_namespace1.il,
+ csharp/stmt/using_namespace1.jl, csharp/stmt/using_namespace2.cs,
+ csharp/stmt/using_namespace2.err, csharp/stmt/using_namespace2.jerr,
+ csharp/stmt/using_namespace3.cs, csharp/stmt/using_namespace3.il,
+ csharp/stmt/using_namespace3.jl, csharp/stmt/using_namespace4.cs,
+ csharp/stmt/using_namespace4.err, csharp/stmt/using_namespace4.jerr,
+ csharp/stmt/using_namespace5.cs, csharp/stmt/using_namespace5.il,
+ csharp/stmt/using_namespace5.jl, csharp/stmt/using_namespace6.cs,
+ csharp/stmt/using_namespace6.il, csharp/stmt/using_namespace6.jl: Add
new
+ tests for the using namespace directive.
+
2007-05-29 Klaus Treichel <address@hidden>
* csharp/parser/Makefile.am: exclude attrs1.cs and attrs2.cs from the
tests
Index: csharp/stmt/Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/csharp/stmt/Makefile.am,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- csharp/stmt/Makefile.am 29 May 2007 15:16:46 -0000 1.16
+++ csharp/stmt/Makefile.am 30 May 2007 06:26:07 -0000 1.17
@@ -24,6 +24,12 @@
using_alias3.cs \
using_alias4.cs \
using_alias5.cs \
+ using_namespace1.cs \
+ using_namespace2.cs \
+ using_namespace3.cs \
+ using_namespace4.cs \
+ using_namespace5.cs \
+ using_namespace6.cs \
using1.cs \
using2.cs \
using3.cs \
Index: csharp/stmt/using_namespace1.cs
===================================================================
RCS file: csharp/stmt/using_namespace1.cs
diff -N csharp/stmt/using_namespace1.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace1.cs 30 May 2007 06:26:07 -0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * using_namespace1.cs - Test scoping of using namespace directives
+ * ECMA 334 V4 16.4.2.
+ *
+ * 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 N1.N2
+{
+ class A {}
+}
+
+namespace N3
+{
+ using N1.N2;
+
+ class B: A {}
+}
Index: csharp/stmt/using_namespace1.il
===================================================================
RCS file: csharp/stmt/using_namespace1.il
diff -N csharp/stmt/using_namespace1.il
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace1.il 30 May 2007 06:26:07 -0000 1.1
@@ -0,0 +1,35 @@
+.assembly extern '.library'
+{
+ .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+ .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'N1.N2'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N1.N2
+.namespace 'N3'
+{
+.class private auto ansi 'B' extends 'N1.N2'.'A'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed
+{
+ ldarg.0
+ call instance void 'N1.N2'.'A'::'.ctor'()
+ ret
+ .maxstack 1
+} // method .ctor
+} // class B
+} // namespace N3
Index: csharp/stmt/using_namespace1.jl
===================================================================
RCS file: csharp/stmt/using_namespace1.jl
diff -N csharp/stmt/using_namespace1.jl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace1.jl 30 May 2007 06:26:07 -0000 1.1
@@ -0,0 +1,37 @@
+.assembly extern '.library'
+{
+ .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+ .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'N1.N2'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N1.N2
+.namespace 'N3'
+{
+.class private auto ansi 'B' extends 'N1.N2'.'A'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed java
+{
+ aload_0
+ invokespecial instance void 'N1.N2'.'A'::'.ctor'()
+ return
+ .locals 1
+ .maxstack 1
+} // method .ctor
+} // class B
+} // namespace N3
Index: csharp/stmt/using_namespace2.cs
===================================================================
RCS file: csharp/stmt/using_namespace2.cs
diff -N csharp/stmt/using_namespace2.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace2.cs 30 May 2007 06:26:08 -0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * using_namespace2.cs - Test scoping of using namespace directives
+ * ECMA 334 V4 16.4.2.
+ *
+ * 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 N1.N2
+{
+ class A {}
+}
+
+namespace N3
+{
+ using N1;
+
+ class B: N2.A {}
+}
Index: csharp/stmt/using_namespace2.err
===================================================================
RCS file: csharp/stmt/using_namespace2.err
diff -N csharp/stmt/using_namespace2.err
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace2.err 30 May 2007 06:26:08 -0000 1.1
@@ -0,0 +1,2 @@
+./using_namespace2.cs:31: invalid left operand to `.'
+./using_namespace2.cs:31: invalid base type
Index: csharp/stmt/using_namespace2.jerr
===================================================================
RCS file: csharp/stmt/using_namespace2.jerr
diff -N csharp/stmt/using_namespace2.jerr
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace2.jerr 30 May 2007 06:26:08 -0000 1.1
@@ -0,0 +1,2 @@
+./using_namespace2.cs:31: invalid left operand to `.'
+./using_namespace2.cs:31: invalid base type
Index: csharp/stmt/using_namespace3.cs
===================================================================
RCS file: csharp/stmt/using_namespace3.cs
diff -N csharp/stmt/using_namespace3.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace3.cs 30 May 2007 06:26:08 -0000 1.1
@@ -0,0 +1,34 @@
+/*
+ * using_namespace3.cs - Test scoping of using namespace directives
+ * ECMA 334 V4 16.4.2.
+ *
+ * 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 N1.N2
+{
+ class A {}
+ class B {}
+}
+
+namespace N3
+{
+ using N1.N2;
+
+ class A {}
+ class B: A {} // Has to reference N3.A
+}
Index: csharp/stmt/using_namespace3.il
===================================================================
RCS file: csharp/stmt/using_namespace3.il
diff -N csharp/stmt/using_namespace3.il
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace3.il 30 May 2007 06:26:08 -0000 1.1
@@ -0,0 +1,61 @@
+.assembly extern '.library'
+{
+ .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+ .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'N1.N2'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N1.N2
+.namespace 'N1.N2'
+{
+.class private auto ansi 'B' 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 B
+} // namespace N1.N2
+.namespace 'N3'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N3
+.namespace 'N3'
+{
+.class private auto ansi 'B' extends 'N3'.'A'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed
+{
+ ldarg.0
+ call instance void 'N3'.'A'::'.ctor'()
+ ret
+ .maxstack 1
+} // method .ctor
+} // class B
+} // namespace N3
Index: csharp/stmt/using_namespace3.jl
===================================================================
RCS file: csharp/stmt/using_namespace3.jl
diff -N csharp/stmt/using_namespace3.jl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace3.jl 30 May 2007 06:26:08 -0000 1.1
@@ -0,0 +1,65 @@
+.assembly extern '.library'
+{
+ .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+ .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'N1.N2'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N1.N2
+.namespace 'N1.N2'
+{
+.class private auto ansi 'B' 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 B
+} // namespace N1.N2
+.namespace 'N3'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N3
+.namespace 'N3'
+{
+.class private auto ansi 'B' extends 'N3'.'A'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed java
+{
+ aload_0
+ invokespecial instance void 'N3'.'A'::'.ctor'()
+ return
+ .locals 1
+ .maxstack 1
+} // method .ctor
+} // class B
+} // namespace N3
Index: csharp/stmt/using_namespace4.cs
===================================================================
RCS file: csharp/stmt/using_namespace4.cs
diff -N csharp/stmt/using_namespace4.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace4.cs 30 May 2007 06:26:08 -0000 1.1
@@ -0,0 +1,38 @@
+/*
+ * using_namespace4.cs - Test scoping of using namespace directives
+ * ECMA 334 V4 16.4.2.
+ *
+ * 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 N1
+{
+ class A {}
+}
+
+namespace N2
+{
+ class A {}
+}
+
+namespace N3
+{
+ using N1;
+ using N2;
+
+ class B: A {} // Error: A is ambiguously defined
+}
Index: csharp/stmt/using_namespace4.err
===================================================================
RCS file: csharp/stmt/using_namespace4.err
diff -N csharp/stmt/using_namespace4.err
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace4.err 30 May 2007 06:26:09 -0000 1.1
@@ -0,0 +1 @@
+./using_namespace4.cs:37: invalid base type
Index: csharp/stmt/using_namespace4.jerr
===================================================================
RCS file: csharp/stmt/using_namespace4.jerr
diff -N csharp/stmt/using_namespace4.jerr
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace4.jerr 30 May 2007 06:26:09 -0000 1.1
@@ -0,0 +1 @@
+./using_namespace4.cs:37: invalid base type
Index: csharp/stmt/using_namespace5.cs
===================================================================
RCS file: csharp/stmt/using_namespace5.cs
diff -N csharp/stmt/using_namespace5.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace5.cs 30 May 2007 06:26:09 -0000 1.1
@@ -0,0 +1,39 @@
+/*
+ * using_namespace5.cs - Test scoping of using namespace directives
+ * ECMA 334 V4 16.4.2.
+ *
+ * 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 N1
+{
+ class A {}
+}
+
+namespace N2
+{
+ class A {}
+}
+
+namespace N3
+{
+ using N1;
+ using N2;
+ using A = N1.A;
+
+ class B: A {} // A means N1.A
+}
Index: csharp/stmt/using_namespace5.il
===================================================================
RCS file: csharp/stmt/using_namespace5.il
diff -N csharp/stmt/using_namespace5.il
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace5.il 30 May 2007 06:26:09 -0000 1.1
@@ -0,0 +1,48 @@
+.assembly extern '.library'
+{
+ .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+ .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'N1'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N1
+.namespace 'N2'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N2
+.namespace 'N3'
+{
+.class private auto ansi 'B' extends 'N1'.'A'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed
+{
+ ldarg.0
+ call instance void 'N1'.'A'::'.ctor'()
+ ret
+ .maxstack 1
+} // method .ctor
+} // class B
+} // namespace N3
Index: csharp/stmt/using_namespace5.jl
===================================================================
RCS file: csharp/stmt/using_namespace5.jl
diff -N csharp/stmt/using_namespace5.jl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace5.jl 30 May 2007 06:26:09 -0000 1.1
@@ -0,0 +1,51 @@
+.assembly extern '.library'
+{
+ .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+ .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'N1'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N1
+.namespace 'N2'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N2
+.namespace 'N3'
+{
+.class private auto ansi 'B' extends 'N1'.'A'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed java
+{
+ aload_0
+ invokespecial instance void 'N1'.'A'::'.ctor'()
+ return
+ .locals 1
+ .maxstack 1
+} // method .ctor
+} // class B
+} // namespace N3
Index: csharp/stmt/using_namespace6.cs
===================================================================
RCS file: csharp/stmt/using_namespace6.cs
diff -N csharp/stmt/using_namespace6.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace6.cs 30 May 2007 06:26:09 -0000 1.1
@@ -0,0 +1,37 @@
+/*
+ * using_namespace6.cs - Test scoping of using namespace directives.
+ * ECMA 334 V4 16.4.2.
+ *
+ * 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 N1
+{
+ class A {}
+
+ namespace N2
+ {
+ class A {}
+ }
+
+ namespace N3
+ {
+ using N2;
+
+ class B: A {} // A means N1.N2.A
+ }
+}
Index: csharp/stmt/using_namespace6.il
===================================================================
RCS file: csharp/stmt/using_namespace6.il
diff -N csharp/stmt/using_namespace6.il
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace6.il 30 May 2007 06:26:09 -0000 1.1
@@ -0,0 +1,48 @@
+.assembly extern '.library'
+{
+ .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+ .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'N1'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N1
+.namespace 'N1.N2'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N1.N2
+.namespace 'N1.N3'
+{
+.class private auto ansi 'B' extends 'N1.N2'.'A'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed
+{
+ ldarg.0
+ call instance void 'N1.N2'.'A'::'.ctor'()
+ ret
+ .maxstack 1
+} // method .ctor
+} // class B
+} // namespace N1.N3
Index: csharp/stmt/using_namespace6.jl
===================================================================
RCS file: csharp/stmt/using_namespace6.jl
diff -N csharp/stmt/using_namespace6.jl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/stmt/using_namespace6.jl 30 May 2007 06:26:10 -0000 1.1
@@ -0,0 +1,51 @@
+.assembly extern '.library'
+{
+ .ver 0:0:0:0
+}
+.assembly '<Assembly>'
+{
+ .ver 0:0:0:0
+}
+.module '<Module>'
+.namespace 'N1'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N1
+.namespace 'N1.N2'
+{
+.class private auto ansi 'A' 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 A
+} // namespace N1.N2
+.namespace 'N1.N3'
+{
+.class private auto ansi 'B' extends 'N1.N2'.'A'
+{
+.method public hidebysig specialname rtspecialname instance void '.ctor'() cil
managed java
+{
+ aload_0
+ invokespecial instance void 'N1.N2'.'A'::'.ctor'()
+ return
+ .locals 1
+ .maxstack 1
+} // method .ctor
+} // class B
+} // namespace N1.N3