**Version Used**: 9881daa0056e5a12ad968a088975ab9afdfb4f9f **Steps to Reproduce**: ```cs [Fact] public void EmitMetadataOnly_TopLevelStatements() { CompileAndVerify(""" System.Console.WriteLine("a"); """, emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true)) .VerifyDiagnostics(); } ``` **Expected Behavior**: Succeeds. **Actual Behavior**: PEVerify fails with "Bad token as entry point in CLR header." Note that using Main and TestOptions.ReleaseExe fails in the same way. Perhaps it's expected that ref assemblies are only supported by PEVerify for class libraries, not console apps.