fix run-test
[mcs.git] / errors / cs0459.cs
blob564a0ac59e63f6872974cb1765d0254e82ea0bb6
1 // CS0459: Cannot take the address of foreach iteration variable `c'
2 // Line: 10
3 // Compiler options: -unsafe
5 class C
7 public static unsafe void Main ()
9 foreach (char c in "test") {
10 char* ch = &c;