Merge pull request #5010 from Unity-Technologies/boehm-gc-alloc-fixed-sre
[mono.git] / mono / tests / testing_gac / app-both.cs
1
2 // reference both versions of gactestlib via extern aliases.
3
4 // N.B. the order of the aliases is important - the compiler will emit
5 // .assembly declarations in the IL file in order, and Mono will try to load the declarations in the same order.
6 // The test relies on V1 being loaded first and then V2 being tried from V1's MONO_PATH directory.
7 extern alias V1;
8 extern alias V2;
9
10 using System;
11
12 public class AppBoth {
13         public static int Main (string[] args) {
14                 // regression test that references two strongly named
15                 // assemblies that have the same name but different versions.
16                 V1.OnlyInV1.M ();
17                 V2.OnlyInV2.M ();
18                 if (typeof (V1.X).Assembly.GetName ().Version == typeof (V2.X).Assembly.GetName ().Version)
19                         return 1;
20
21                 return 0;
22         }
23 }