[mini] Fix test compiling when running !MOBILE
[mono.git] / mcs / errors / cs0459.cs
1 // CS0459: Cannot take the address of foreach iteration variable `c'
2 // Line: 10
3 // Compiler options: -unsafe
4
5 class C
6 {
7         public static unsafe void Main ()
8         {
9                 foreach (char c in "test") {
10                         char* ch = &c;
11                 }
12     }
13 }