codeowners update
[mono.git] / mcs / tests / test-externalias-08.cs
1 // Compiler options: -r:MyAssembly01=test-externalias-00-lib.dll -r:MyAssembly02=test-externalias-01-lib.dll -r:test-externalias-01-lib.dll
2
3 extern alias MyAssembly01;
4 extern alias MyAssembly02;
5 using System;
6
7 // this is from test-externalias-01-lib.dll
8 using Namespace1;
9
10 public class Test
11 {
12         public static int Main ()
13         {
14                 // This shouldn't produce a clash
15                 if (MyClass1.StaticMethod () != 2)
16                         return 1;
17                 if (GlobalClass.StaticMethod () != 2)
18                         return 1;
19
20                 if (MyAssembly01::GlobalClass.StaticMethod () != 1)
21                         return 1;
22                 if (MyAssembly02::GlobalClass.StaticMethod () != 2)
23                         return 1;
24
25                 return 0;
26         }
27 }
28