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>2005-05-13 13:43:26 +0400
committerMarek Safar <marek.safar@gmail.com>2005-05-13 13:43:26 +0400
commit18db43b590e3e695402c6186b085411005502b62 (patch)
treed6fdd534b1a48b31500f4f6d5fdcb797b217977b /mcs/errors/cs1656-2.cs
parentfa44c5ad4e6b8fa7582719557064b6d3e4a458ee (diff)
new tests
svn path=/trunk/mcs/; revision=44492
Diffstat (limited to 'mcs/errors/cs1656-2.cs')
-rw-r--r--mcs/errors/cs1656-2.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs1656-2.cs b/mcs/errors/cs1656-2.cs
new file mode 100644
index 00000000000..984b00f86ce
--- /dev/null
+++ b/mcs/errors/cs1656-2.cs
@@ -0,0 +1,14 @@
+// cs1656.cs: Cannot assign to 'p' because it is a 'fixed variable'
+// line: 10
+// Compiler options: -unsafe
+
+unsafe class X {
+
+ static int x = 0;
+ static void Main () {
+ fixed (int* p = &x) {
+ p = (int*)22;
+ }
+ }
+}
+