**** Merged from MCS ****
[mono-project.git] / mcs / tests / module-3.cs
blobe4b4aecd815015d9af228ddd400379f4d6645ec4
1 // Compiler options: -addmodule:module-1.netmodule -addmodule:module-2.netmodule
3 using System;
5 public class M3 : M1 {
7 public M3 () : base ("FOO") {
10 public static int Main () {
11 if (new M3 ().Foo != "FOO")
12 return 1;
13 /* Test that the EXPORTEDTYPES table is correctly set up */
14 if (typeof (M3).Assembly.GetTypes ().Length != 3)
15 return 2;
16 if (typeof (M3).Assembly.GetType ("M2") == null)
17 return 3;
18 if (typeof (M3).Assembly.GetType ("M2") != typeof (M2))
19 return 3;
20 return 0;