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>2009-03-08 22:16:20 +0300
committerMarek Safar <marek.safar@gmail.com>2009-03-08 22:16:20 +0300
commiteca88b66e8bfee89d30e078a6ef8323ffee87015 (patch)
tree9ebeed38c949882b91241e4c8dbbf1d009cd3c55 /mcs/tests/gtest-354.cs
parent3c1339e749d5b12ccba7ddfade79f11cf996a6d4 (diff)
New tests.
svn path=/trunk/mcs/; revision=128855
Diffstat (limited to 'mcs/tests/gtest-354.cs')
-rw-r--r--mcs/tests/gtest-354.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/mcs/tests/gtest-354.cs b/mcs/tests/gtest-354.cs
index 0035334149a..5cb56787084 100644
--- a/mcs/tests/gtest-354.cs
+++ b/mcs/tests/gtest-354.cs
@@ -1,8 +1,10 @@
// Compiler options: -unsafe
+using System.Runtime.InteropServices;
+
public unsafe struct A
{
- fixed byte fileid[DbConst.DB_FILE_ID_LEN];
+ fixed byte fileid [DbConst.DB_FILE_ID_LEN];
}
public static class DbConst
@@ -10,6 +12,13 @@ public static class DbConst
public const int DB_FILE_ID_LEN = 20;
}
+[StructLayout(LayoutKind.Sequential, Size=92)]
+internal unsafe struct hci_dev_info {
+ public fixed sbyte name[8];
+ private fixed byte bdaddr[6];
+ hci_dev_info* foo;
+}
+
class M
{
public static void Main ()