You've already forked linux-packaging-mono
Imported Upstream version 5.14.0.78
Former-commit-id: 3494343bcc9ddb42b36b82dd9ae7b69e85e0229f
This commit is contained in:
parent
74b74abd9f
commit
19234507ba
13
mcs/tests/dtest-066.cs
Normal file
13
mcs/tests/dtest-066.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
class C
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
object o = 1;
|
||||
dynamic d = 1;
|
||||
|
||||
var a = new[] {
|
||||
new { X = o },
|
||||
new { X = d }
|
||||
};
|
||||
}
|
||||
}
|
@@ -10,12 +10,5 @@ test-pattern-04.cs
|
||||
test-pattern-05.cs
|
||||
test-pattern-07.cs
|
||||
|
||||
gtest-etree-01.cs
|
||||
gtest-etree-09.cs
|
||||
test-269.cs
|
||||
test-270.cs
|
||||
test-399.cs
|
||||
test-404.cs
|
||||
test-704.cs
|
||||
test-811.cs
|
||||
test-async-17.cs
|
||||
|
@@ -15,6 +15,24 @@ unsafe class Program
|
||||
}
|
||||
}
|
||||
|
||||
public static bool StringNull (string s)
|
||||
{
|
||||
unsafe {
|
||||
fixed (char *a = s) {
|
||||
return a == null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static bool ArrayNull (int[] a)
|
||||
{
|
||||
unsafe {
|
||||
fixed (int *e = a) {
|
||||
return e == null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static int Main ()
|
||||
{
|
||||
Test ();
|
||||
@@ -24,6 +42,12 @@ unsafe class Program
|
||||
if (lv.IsPinned)
|
||||
return 1;
|
||||
|
||||
if (!StringNull (null))
|
||||
return 1;
|
||||
|
||||
if (!ArrayNull (null))
|
||||
return 2;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// Compiler options: -langversion:latest
|
||||
|
||||
public readonly partial ref struct Test
|
||||
public readonly ref partial struct Test
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
@@ -14,6 +14,11 @@ public readonly partial ref struct Test
|
||||
}
|
||||
}
|
||||
|
||||
ref partial struct Test
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
ref struct Second
|
||||
{
|
||||
Test field;
|
||||
|
@@ -26,6 +26,11 @@ class TupleConversions
|
||||
(string v1, object v2) b = ("a", "b");
|
||||
|
||||
(int v1, long v2)? x = null;
|
||||
|
||||
var array = new [] {
|
||||
(name: "A", offset: 0),
|
||||
(name: "B", size: 4)
|
||||
};
|
||||
}
|
||||
|
||||
static void Foo<T> (T arg)
|
||||
|
9
mcs/tests/test-tuple-10.cs
Normal file
9
mcs/tests/test-tuple-10.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System.Linq;
|
||||
|
||||
class Program {
|
||||
public static int Main ()
|
||||
{
|
||||
var l = (from f in (typeof (Program)).GetFields() select (name: f.Name, offset: 0)).ToList();
|
||||
return 0;
|
||||
}
|
||||
}
|
@@ -1 +1 @@
|
||||
b9f7e8f159b0400a597cc46e59c1ab2f32b9d4e8
|
||||
4fc8adbf4abf604dc4d7d7c0c6b1bc707fcd6916
|
Reference in New Issue
Block a user