2001-12-09 Radek Doulik <rodo@ximian.com>
authorRadek Doulik <rodo@mono-cvs.ximian.com>
Sun, 9 Dec 2001 15:29:27 +0000 (15:29 -0000)
committerRadek Doulik <rodo@mono-cvs.ximian.com>
Sun, 9 Dec 2001 15:29:27 +0000 (15:29 -0000)
* makefile (TEST_SOURCES): added test-55 for using alias directive

svn path=/trunk/mcs/; revision=1547

mcs/tests/ChangeLog
mcs/tests/makefile
mcs/tests/test-55.cs [new file with mode: 0755]

index 318fbdac36ca2c5a4dc4642ae9fab11d38d4b1cb..5e08ffbbe6e1a717be93a9ebcd7d3830f86b0274 100755 (executable)
@@ -1,3 +1,7 @@
+2001-12-09  Radek Doulik  <rodo@ximian.com>
+
+       * makefile (TEST_SOURCES): added test-55 for using alias directive
+
 2001-12-06  Dietmar Maurer  <dietmar@ximian.com>
 
        * makefile: added new target test-jit
index 8a96d3e0adbd6956468efc39c83bc35569ed1bf7..faa4c89a32ed30f5b8b926133c443103cf5f7553 100755 (executable)
@@ -10,7 +10,7 @@ TEST_SOURCES = \
        test-21 test-22 test-23 test-24 test-25 test-26 test-27 test-28                 \
        test-31 test-32 test-33 test-34 test-35 test-36 test-37         test-39 test-40 \
        test-41 test-42 test-43 test-44 test-45 test-46 test-47 test-48 test-49 test-50 \
-                       test-53 
+                       test-53         test-55
 
 
 # NOTE ON TEST-54.  Do not remove it, it compiles but does not pass peverify
diff --git a/mcs/tests/test-55.cs b/mcs/tests/test-55.cs
new file mode 100755 (executable)
index 0000000..6058ee2
--- /dev/null
@@ -0,0 +1,33 @@
+using c = System.Console;
+using s = System;
+
+namespace A {
+       namespace B {
+               class C {
+                       public static void Hola () {
+                               c.WriteLine ("Hola!");
+                       }
+               }
+       }
+}
+
+namespace X {
+       namespace Y {
+               namespace Z {
+                       class W {
+                               public static void Ahoj () {
+                                       s.Console.WriteLine ("Ahoj!");
+                               }
+                       }
+               }
+       }
+}
+
+class App {
+       public static int Main () {
+               A.B.C.Hola ();
+               X.Y.Z.W.Ahoj ();
+
+               return 0;
+       }
+}