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-01-06 19:17:36 +0300
committerMarek Safar <marek.safar@gmail.com>2009-01-06 19:17:36 +0300
commit54c57a1163b3b6286778c1e89f2bd4df4e4b5600 (patch)
treeeb29b2b5b4faea107c86c2bbbd1256b2724b3b47 /mcs/tests/test-701.cs
parent11d9343e1134ef4d0c96a76c2d29aa03a02106a0 (diff)
New test.
svn path=/trunk/mcs/; revision=122559
Diffstat (limited to 'mcs/tests/test-701.cs')
-rw-r--r--mcs/tests/test-701.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/tests/test-701.cs b/mcs/tests/test-701.cs
new file mode 100644
index 00000000000..5698f68ba72
--- /dev/null
+++ b/mcs/tests/test-701.cs
@@ -0,0 +1,20 @@
+// Compiler options: -warnaserror -warn:4
+
+using System;
+
+[assembly: CLSCompliant (true)]
+
+public class Foo
+{
+#pragma warning disable 3019
+ [CLSCompliant (false)]
+#pragma warning restore 3019
+ internal ushort ToUint16 ()
+ {
+ return ushort.MaxValue;
+ }
+
+ static void Main ()
+ {
+ }
+}