Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-externalias-02.cs
1 // Compiler options: -r:MyAssembly01=test-externalias-00-lib.dll -r:MyAssembly02=test-externalias-01-lib.dll
2
3 extern alias MyAssembly01;
4 extern alias MyAssembly02;
5 using System;
6
7 public class Test
8 {
9         public static int Main ()
10         {
11                 if (MyAssembly01::Namespace1.MyClass1.StaticMethod () != 1)
12                         return 1;
13                 if (MyAssembly02::Namespace1.MyClass1.StaticMethod () != 2)
14                         return 1;
15
16                 if (new MyAssembly01::Namespace1.MyClass1 ().InstanceMethod () != 1)
17                         return 1;
18                 if (new MyAssembly02::Namespace1.MyClass1 ().InstanceMethod () != 2)
19                         return 1;
20
21                 return 0;
22         }
23 }
24