forked from dotnet/runtimelab
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement function pointer signatures (dotnet#57)
* Implement function pointer signatures Will be needed to trim anything touching corelib. Fixes dotnet#35. * Fix modifiers rewrite Co-authored-by: vitek-karas <vitek.karas@microsoft.com>
- Loading branch information
1 parent
cbc5eb7
commit b6f8007
Showing
5 changed files
with
50 additions
and
5 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
27 changes: 27 additions & 0 deletions
27
src/coreclr/tools/ILTrim/ILTrim.Tests.Cases/Basic/FunctionPointer.cs
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,27 @@ | ||
using Mono.Linker.Tests.Cases.Expectations.Assertions; | ||
using Mono.Linker.Tests.Cases.Expectations.Metadata; | ||
|
||
[module:KeptAttributeAttribute(typeof(System.Security.UnverifiableCodeAttribute))] | ||
|
||
namespace Mono.Linker.Tests.Cases.Basic | ||
{ | ||
[Kept] | ||
[SetupCompileArgument("/unsafe")] | ||
unsafe class FunctionPointer | ||
{ | ||
[Kept] | ||
static void Main() | ||
{ | ||
MethodTakingFunctionPointer(null); | ||
} | ||
|
||
[Kept] | ||
static void MethodTakingFunctionPointer(delegate*<OneType, OtherType> del) { } | ||
|
||
[Kept] | ||
class OneType { } | ||
|
||
[Kept] | ||
class OtherType { } | ||
} | ||
} |
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