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>2008-09-04 20:30:06 +0400
committerMarek Safar <marek.safar@gmail.com>2008-09-04 20:30:06 +0400
commit022374276387e92d6dd19465dadce60d6e4049af (patch)
treebb789d3f1f9d76b2f614a8c1b95c8e074954099f /mcs/tests/gtest-166.cs
parentd7a1374dde24547fc22f18adb09ce4bebf626f8f (diff)
More tests.
svn path=/trunk/mcs/; revision=112303
Diffstat (limited to 'mcs/tests/gtest-166.cs')
-rw-r--r--mcs/tests/gtest-166.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/mcs/tests/gtest-166.cs b/mcs/tests/gtest-166.cs
index ccfa38d0aec..e558cf496a8 100644
--- a/mcs/tests/gtest-166.cs
+++ b/mcs/tests/gtest-166.cs
@@ -3,7 +3,11 @@
// Fixed buffers tests
using System;
+using System.Runtime.InteropServices;
+//[module: DefaultCharSet (CharSet.Ansi)]
+
+[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public unsafe struct TestNew {
private fixed char test_1 [128];
public fixed bool test2 [4];
@@ -42,7 +46,13 @@ public class C {
foreach (Type t in typeof (TestNew).GetNestedTypes ()) {
if (Attribute.GetCustomAttribute (t, typeof (System.Runtime.CompilerServices.CompilerGeneratedAttribute)) == null)
- return 4;
+ return 40;
+
+ if (Attribute.GetCustomAttribute (t, typeof (System.Runtime.CompilerServices.UnsafeValueTypeAttribute)) == null)
+ return 41;
+
+ if (!t.IsUnicodeClass)
+ return 42;
}
Console.WriteLine ("OK");