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>2004-10-31 18:04:59 +0300
committerMarek Safar <marek.safar@gmail.com>2004-10-31 18:04:59 +0300
commitff5c23f25036a927cefa8a35f8fb3c11d57bc3c5 (patch)
treecfe448a80af23829db5ff8b7b75e7f5956f1262e /mcs/errors/cs0647-10.cs
parent1c2cc8fcdb14a7552ac70d7f0f97ff5db779817c (diff)
new tests
svn path=/trunk/mcs/; revision=35516
Diffstat (limited to 'mcs/errors/cs0647-10.cs')
-rw-r--r--mcs/errors/cs0647-10.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/errors/cs0647-10.cs b/mcs/errors/cs0647-10.cs
new file mode 100644
index 00000000000..cb868efb9bd
--- /dev/null
+++ b/mcs/errors/cs0647-10.cs
@@ -0,0 +1,11 @@
+// cs0647.cs: Error emitting 'MarshalAs' attribute because 'Specified unmanaged type is only valid on fields'
+// Line: 10
+
+using System;
+using System.Runtime.InteropServices;
+
+public class main {
+
+ [DllImport("libname", EntryPoint = "scumbag")]
+ static extern int scumbag(ref int X, [MarshalAs(UnmanagedType.ByValArray)] ref byte[] fb);
+}