Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
[mono-project.git] / mcs / errors / cs0233.cs
blobc98d7c68fb8cc9325f515ca30882d26645c40361
1 // 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)
2 // Line: 10
4 public class MainClass {
5 struct S
9 static int Main () {
10 return sizeof(S);