forked from dotnet/corert
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ILVerify] Implement missing newobj verifications (dotnet#4949)
* Added some missing newobj verifications. * Renamed Initonly VerifierError to InitOnly. * Implemented remaining newobj verifications. * Added missing readonly call verification. * Added missing field parent constraints check. * Added missing check for tail call in exception regions. * Added found type to Endfilter Int expected error. * Added tests for newly implemented verification rules.
- Loading branch information
1 parent
724d1ac
commit c903caf
Showing
6 changed files
with
198 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
.assembly extern System.Runtime | ||
{ | ||
} | ||
|
||
.assembly NewobjTests | ||
{ | ||
} | ||
|
||
.class public auto ansi abstract beforefieldinit AbstractClass | ||
{ | ||
.method public hidebysig newslot abstract virtual instance void AbstractMethod() cil managed | ||
{ | ||
} | ||
} | ||
|
||
.class public auto ansi beforefieldinit NewobjTestsType | ||
extends [System.Runtime]System.Object | ||
{ | ||
.method public hidebysig instance void InstanceMethod() cil managed | ||
{ | ||
ret | ||
} | ||
|
||
.method public hidebysig static void StaticMethod() cil managed | ||
{ | ||
ret | ||
} | ||
|
||
.method public hidebysig instance void Newobj.InstanceMethod_Invalid_CtorExpected() cil managed | ||
{ | ||
newobj instance void NewobjTestsType::InstanceMethod() | ||
pop | ||
ret | ||
} | ||
|
||
.method public hidebysig instance void Newobj.AbstractMethod_Invalid_CtorSig.CtorExpected() cil managed | ||
{ | ||
newobj instance void AbstractClass::AbstractMethod() | ||
pop | ||
ret | ||
} | ||
} |
Oops, something went wrong.