new tests
authorMarek Safar <marek.safar@gmail.com>
Fri, 18 Mar 2005 13:32:27 +0000 (13:32 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 18 Mar 2005 13:32:27 +0000 (13:32 -0000)
svn path=/trunk/mcs/; revision=41981

mcs/errors/cs0271.cs [new file with mode: 0644]
mcs/errors/cs0272.cs [new file with mode: 0644]
mcs/errors/gcs1716.cs [new file with mode: 0644]
mcs/errors/known-issues-gmcs

diff --git a/mcs/errors/cs0271.cs b/mcs/errors/cs0271.cs
new file mode 100644 (file)
index 0000000..d5480ce
--- /dev/null
@@ -0,0 +1,21 @@
+// cs0271.cs: The property or indexer 'P.Prop' cannot be used in this context because the get accessor is inaccessible
+// Line: 19
+
+class P
+{
+    public static int Prop
+    {
+       private get {
+           return 4;
+       }
+       set {}
+    }
+}
+
+public class C
+{
+    public static int Main ()
+    {
+       return P.Prop;
+    }
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0272.cs b/mcs/errors/cs0272.cs
new file mode 100644 (file)
index 0000000..f9fd201
--- /dev/null
@@ -0,0 +1,21 @@
+// cs0272.cs: The property or indexer 'P.Prop' cannot be used in this context because the set accessor is inaccessible
+// Line: 19
+
+class P
+{
+    public static int Prop
+    {
+       get {
+           return 4;
+       }
+       private set {}
+    }
+}
+
+public class C
+{
+    public static void Main ()
+    {
+       P.Prop = 453422;
+    }
+}
\ No newline at end of file
diff --git a/mcs/errors/gcs1716.cs b/mcs/errors/gcs1716.cs
new file mode 100644 (file)
index 0000000..681cc4b
--- /dev/null
@@ -0,0 +1,8 @@
+// cs1716.cs: Do not use 'System.Runtime.CompilerServices.FixedBuffer' attribute. Use the 'fixed' field modifier instead
+// Line: 6
+
+public class C
+{
+    [System.Runtime.CompilerServices.FixedBuffer (typeof (int), 1)]
+    public int i;
+}
\ No newline at end of file
index 2055c1cbc2bea6478446f8c933771458e4779277..7ad324a12ecbe7a72862d835d33b91d3ddcc1c5d 100644 (file)
@@ -152,3 +152,6 @@ cs2023.cs NO ERROR
 cs3003-5.cs
 gcs0080.cs
 gcs1644-2.cs NO ERROR
+cs0271.cs
+cs0272.cs
+gcs1716.cs NO ERROR
\ No newline at end of file