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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2015-03-25 19:58:14 +0300
committerMarek Safar <marek.safar@gmail.com>2015-03-25 19:59:48 +0300
commitb50e898ece06bf7dacbea6211406cca1af5ea5af (patch)
treede34b104b880e7b767de39024c93b91d9c85c7d5 /mcs/tests/test-616.cs
parentfb08db17652e5347ae001ad1750424060b0bc86d (diff)
[mcs] Special case flowanalysis of primitive structs only when they are imported. Fixes #28296
Diffstat (limited to 'mcs/tests/test-616.cs')
-rw-r--r--mcs/tests/test-616.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/mcs/tests/test-616.cs b/mcs/tests/test-616.cs
index 6f189e836f2..d4adf2c26d4 100644
--- a/mcs/tests/test-616.cs
+++ b/mcs/tests/test-616.cs
@@ -25,7 +25,6 @@ namespace System
public struct UInt64 {}
public struct IntPtr {}
public struct UIntPtr {}
- public struct Decimal { }
public class String { }
public class Delegate {}
public class MulticastDelegate {}
@@ -43,6 +42,19 @@ namespace System
public interface IDisposable {}
+ public struct Decimal {
+
+ private int flags;
+
+ public Decimal(int[] bits) {
+ flags = 0;
+ SetBits(bits);
+ }
+
+ private void SetBits(int[] bits) {
+ }
+ }
+
partial class Type
{
public static bool operator == (Type left, Type right)