-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure Endfilter basic block is preserved even if technically unreachable. #69922
Conversation
@dotnet/roslyn-compiler Please review |
1 similar comment
@dotnet/roslyn-compiler Please review |
|
||
static void M3() | ||
{ | ||
System.Console.Write("M2"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: The method name in this call doesn't match the containing method. Consider removing the call if it is not used by the test. #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System.Console.Write("M2"); | |
System.Console.Write("M3"); |
|
||
static void M3() | ||
{ | ||
System.Console.Write("M2"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System.Console.Write("M2"); | |
System.Console.Write("M3"); |
var verifier = CompileAndVerify(source, options: TestOptions.ReleaseExe, expectedOutput: "M1M4M1M2Catch", | ||
// False PEVerify failure: | ||
// PEVerify failed for assembly | ||
// [ : C::M][mdToken=0x6000004][offset 0x0000000E] Stack not empty when leaving an exception filter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the PEVerify failures can be verified programmatically by something like Verification.FailsPEVerify with { PEVerifyMessage = "..." }
. #Resolved
Fixes #67494.