diff options
author | Marek Safar <marek.safar@gmail.com> | 2005-05-13 13:43:26 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2005-05-13 13:43:26 +0400 |
commit | 18db43b590e3e695402c6186b085411005502b62 (patch) | |
tree | d6fdd534b1a48b31500f4f6d5fdcb797b217977b /mcs/errors/cs1656-2.cs | |
parent | fa44c5ad4e6b8fa7582719557064b6d3e4a458ee (diff) |
new tests
svn path=/trunk/mcs/; revision=44492
Diffstat (limited to 'mcs/errors/cs1656-2.cs')
-rw-r--r-- | mcs/errors/cs1656-2.cs | 14 |
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; + } + } +} + |