imported everything from my branch (which is slightly harmless).
[mono.git] / mcs / errors / cs0420-2.cs
1 // cs0420.cs: 'XX.j': a reference to a volatile field will not be treated as volatile
2 // Line: 14
3 // Compiler options: -unsafe /warnaserror
4
5 unsafe class XX {
6         static volatile int j;
7
8         static void X (ref int a)
9         {
10         }
11         
12         static void Main ()
13         {
14                 X (ref j);
15         }
16 }