Merge pull request #3769 from evincarofautumn/fix-verify-before-allocs
[mono.git] / mcs / errors / cs1656-2.cs
1 // CS1656: Cannot assign to `p' because it is a `fixed variable'
2 // Line: 10
3 // Compiler options: -unsafe
4
5 unsafe class X {
6
7         static int x = 0;
8         static void Main () {
9                 fixed (int* p = &x) {
10                     p = (int*)22;
11                 }
12         }                   
13 }
14