New test.
[mono.git] / mcs / errors / cs0233.cs
1 // cs0233.cs: `MainClass.S' does not have a predefined size, therefore sizeof can only be used in an unsafe context (consider using System.Runtime.InteropServices.Marshal.SizeOf)
2 // Line: 10
3
4 public class MainClass {
5         struct S
6         {
7         }
8         
9         static int Main () {
10                 return sizeof(S);
11         }
12 }
13
14