Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-418.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e939cb19b7a2686d6b9ce596b1aaa124619ccc90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Compiler options: -addmodule:test-418-2-mod.netmodule -addmodule:test-418-3-mod.netmodule

using System;

public class M3 : M1 {

	public M3 () : base ("FOO") {
	}

	public static int Main () {
		if (new M3 ().Foo != "FOO")
			return 1;
			
		/* Test that the EXPORTEDTYPES table is correctly set up */
		// It should be 3 but we add 2 compiler generated <$AssemblyAttributes$....>
		if (typeof (M3).Assembly.GetTypes ().Length != 3 + 2)
			return 2;

		if (typeof (M3).Assembly.GetType ("M2") == null)
			return 3;

		if (typeof (M3).Assembly.GetType ("M2") != typeof (M2))
			return 4;

		return 0;
	}
}