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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-11-21 21:54:23 +0300
committerMarek Safar <marek.safar@gmail.com>2010-11-22 12:52:55 +0300
commitfa1270407a0c46046b68fb6301ab8bfbed7d2fd3 (patch)
treec84728c252949d7a391dc12ef941e54aed68d50f /mcs/tests/test-418.cs
parent97cd13b1d82f3069d8dad1e694d1fecaa46f8238 (diff)
Make generated assembly attributes container name unique
Diffstat (limited to 'mcs/tests/test-418.cs')
-rw-r--r--mcs/tests/test-418.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/mcs/tests/test-418.cs b/mcs/tests/test-418.cs
index acbb03841fc..e939cb19b7a 100644
--- a/mcs/tests/test-418.cs
+++ b/mcs/tests/test-418.cs
@@ -10,13 +10,18 @@ public class M3 : M1 {
public static int Main () {
if (new M3 ().Foo != "FOO")
return 1;
+
/* Test that the EXPORTEDTYPES table is correctly set up */
- if (typeof (M3).Assembly.GetTypes ().Length != 3)
+ // 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 3;
+ return 4;
+
return 0;
}
}