diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-12-30 06:08:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-30 06:08:36 +0300 |
commit | 39a8b6ac9054e52b0f2aafb5294cacf27c7f59ca (patch) | |
tree | 4965a76e55fc90920ebe3c716c41418f9568571e /tests | |
parent | ab4222fba0dddecc122b3a5d0437b8c7b6bfee60 (diff) |
Fix RhGetCodeTarget for Unix x64 (#5168)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/Simple/Reflection/Reflection.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/src/Simple/Reflection/Reflection.cs b/tests/src/Simple/Reflection/Reflection.cs index f24a855a8..7f05486d6 100644 --- a/tests/src/Simple/Reflection/Reflection.cs +++ b/tests/src/Simple/Reflection/Reflection.cs @@ -358,14 +358,11 @@ internal class ReflectionTest Type byRefLikeType = GetTestType(nameof(TestByRefLikeTypeMethod), nameof(ByRefLike)); MethodInfo toStringMethod = byRefLikeType.GetMethod("ToString"); - /*var toString = (ToStringDelegate)*/toStringMethod.CreateDelegate(typeof(ToStringDelegate)); + var toString = (ToStringDelegate)toStringMethod.CreateDelegate(typeof(ToStringDelegate)); - // Doesn't work on Unix: https://github.com/dotnet/corert/issues/4379 -#if false ByRefLike foo = new ByRefLike(123); if (toString(ref foo) != "123") throw new Exception(); -#endif } } |