2003-12-28 Ben Maurer <bmaurer@users.sourceforge.net>
[mono.git] / mcs / tests / module-3.cs
1 \r
2 using System;\r
3 \r
4 public class M3 : M1 {\r
5 \r
6         public M3 () : base ("FOO") {\r
7         }\r
8 \r
9         public static int Main () {\r
10                 if (new M3 ().Foo != "FOO")\r
11                         return 1;\r
12                 /* Test that the EXPORTEDTYPES table is correctly set up */\r
13                 if (typeof (M3).Assembly.GetTypes ().Length != 3)\r
14                         return 2;\r
15                 if (typeof (M3).Assembly.GetType ("M2") == null)\r
16                         return 3;\r
17                 return 0;\r
18         }\r
19 }\r