diff options
author | Vitek Karas <vitek.karas@microsoft.com> | 2020-12-09 01:40:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 01:40:36 +0300 |
commit | d0602c4767acf5dcd46700381ce39bd2775de6d7 (patch) | |
tree | 00834edf0d3422eb085560e674550ce473326a5c /test/Mono.Linker.Tests.Cases/TypeForwarding/Dependencies/ReferenceImplementationLibrary.cs | |
parent | 7b82b569a7d82149c590777781891dd900c85f19 (diff) |
Fix pointer type forwarding (#1679)
Sweep step resolves type forwarders and replaces them with direct type refs. There were already special cases for generic instantiations and array, but other type specifications were missing, most notably pointer types.
Added handling of all type specifications and added some tests.
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/TypeForwarding/Dependencies/ReferenceImplementationLibrary.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/TypeForwarding/Dependencies/ReferenceImplementationLibrary.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/TypeForwarding/Dependencies/ReferenceImplementationLibrary.cs b/test/Mono.Linker.Tests.Cases/TypeForwarding/Dependencies/ReferenceImplementationLibrary.cs index ff4def7c9..8796effb1 100644 --- a/test/Mono.Linker.Tests.Cases/TypeForwarding/Dependencies/ReferenceImplementationLibrary.cs +++ b/test/Mono.Linker.Tests.Cases/TypeForwarding/Dependencies/ReferenceImplementationLibrary.cs @@ -15,5 +15,10 @@ namespace Mono.Linker.Tests.Cases.TypeForwarding.Dependencies return null; } } + + public struct ImplementationStruct + { + public int Field; + } #endif } |