[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs1764.cs
bloba1dd2e36d1591c8f4bd3fdcb8e8dad9daea66c9a
1 // CS1764: Cannot use fixed variable `p' inside an anonymous method, lambda expression or query expression
2 // Line: 10
3 // Compiler options: -unsafe
5 using System;
7 unsafe class Test
9 static int x;
11 static void Main ()
13 fixed (int* p = &x) {
14 Action a = () => { var pp = p; };