summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0233.cs
blob: c98d7c68fb8cc9325f515ca30882d26645c40361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0233: `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)
// Line: 10

public class MainClass {
	struct S
	{
	}
	
        static int Main () {
                return sizeof(S);
        }
}