[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git] / mcs / tests / test-418.cs
blobe939cb19b7a2686d6b9ce596b1aaa124619ccc90
1 // Compiler options: -addmodule:test-418-2-mod.netmodule -addmodule:test-418-3-mod.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;
14 /* Test that the EXPORTEDTYPES table is correctly set up */
15 // It should be 3 but we add 2 compiler generated <$AssemblyAttributes$....>
16 if (typeof (M3).Assembly.GetTypes ().Length != 3 + 2)
17 return 2;
19 if (typeof (M3).Assembly.GetType ("M2") == null)
20 return 3;
22 if (typeof (M3).Assembly.GetType ("M2") != typeof (M2))
23 return 4;
25 return 0;