Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-10-04 02:24:27 +0300
committerJan Kotas <jkotas@microsoft.com>2017-10-04 05:48:29 +0300
commit796aeaa64ec09da3e05683111c864b529bcc17e8 (patch)
tree3e728906bf2405abe2c11b783e0b24257504b296 /src/ILCompiler.TypeSystem
parentbed65ff83dde98d4915d374337ac62d30f14715c (diff)
Disable tests against https://github.com/dotnet/corert/issues/4665
Diffstat (limited to 'src/ILCompiler.TypeSystem')
-rw-r--r--src/ILCompiler.TypeSystem/tests/CoreTestAssembly/InstanceFieldLayout.cs9
-rw-r--r--src/ILCompiler.TypeSystem/tests/InstanceFieldLayoutTests.cs2
2 files changed, 6 insertions, 5 deletions
diff --git a/src/ILCompiler.TypeSystem/tests/CoreTestAssembly/InstanceFieldLayout.cs b/src/ILCompiler.TypeSystem/tests/CoreTestAssembly/InstanceFieldLayout.cs
index 2deac86e1..83ca0c423 100644
--- a/src/ILCompiler.TypeSystem/tests/CoreTestAssembly/InstanceFieldLayout.cs
+++ b/src/ILCompiler.TypeSystem/tests/CoreTestAssembly/InstanceFieldLayout.cs
@@ -148,8 +148,7 @@ namespace Sequential
namespace IsByRefLike
{
- [System.Runtime.CompilerServices.IsByRefLike]
- public struct ByRefLikeStruct
+ public ref struct ByRefLikeStruct
{
ByReference<object> ByRef;
}
@@ -159,8 +158,8 @@ namespace IsByRefLike
int X;
}
- [System.Runtime.CompilerServices.IsByRefLike]
- public class InvalidClass
+#if false // https://github.com/dotnet/corert/issues/4665
+ public ref class InvalidClass
{
ByReference<int> ByRef;
}
@@ -169,5 +168,5 @@ namespace IsByRefLike
{
ByRefLikeStruct ByRefLike;
}
+#endif
}
-
diff --git a/src/ILCompiler.TypeSystem/tests/InstanceFieldLayoutTests.cs b/src/ILCompiler.TypeSystem/tests/InstanceFieldLayoutTests.cs
index 97e6cb568..f8ba12b60 100644
--- a/src/ILCompiler.TypeSystem/tests/InstanceFieldLayoutTests.cs
+++ b/src/ILCompiler.TypeSystem/tests/InstanceFieldLayoutTests.cs
@@ -324,6 +324,7 @@ namespace TypeSystemTests
}
}
+#if false // https://github.com/dotnet/corert/issues/4665
[Fact]
public void TestInvalidByRefLikeTypes()
{
@@ -337,5 +338,6 @@ namespace TypeSystemTests
Assert.Throws<TypeSystemException.TypeLoadException>(() => type.ComputeInstanceLayout(InstanceLayoutKind.TypeAndFields));
}
}
+#endif
}
}