New tests.
authorMarek Safar <marek.safar@gmail.com>
Thu, 8 Nov 2007 15:59:13 +0000 (15:59 -0000)
committerMarek Safar <marek.safar@gmail.com>
Thu, 8 Nov 2007 15:59:13 +0000 (15:59 -0000)
svn path=/trunk/mcs/; revision=89205

mcs/errors/cs0677-2.cs [new file with mode: 0644]
mcs/errors/gcs0677-2.cs [new file with mode: 0644]
mcs/errors/gcs0677.cs [new file with mode: 0644]

diff --git a/mcs/errors/cs0677-2.cs b/mcs/errors/cs0677-2.cs
new file mode 100644 (file)
index 0000000..9288296
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0677: `X.d': A volatile field cannot be of the type `double'
+// Line: 6
+
+class X
+{
+       public volatile double d;
+}
diff --git a/mcs/errors/gcs0677-2.cs b/mcs/errors/gcs0677-2.cs
new file mode 100644 (file)
index 0000000..2949f2a
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0677: `C<T>.t': A volatile field cannot be of the type `T'
+// Line: 8
+
+public class C<T>
+{
+       volatile T t;
+}
diff --git a/mcs/errors/gcs0677.cs b/mcs/errors/gcs0677.cs
new file mode 100644 (file)
index 0000000..190ab80
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0677: `C<T>.t': A volatile field cannot be of the type `T'
+// Line: 8
+
+public class C<T>  where T : struct
+{
+       volatile T t;
+}