Imported Upstream version 5.16.0.100

Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-08-07 15:19:03 +00:00
parent 0a9828183b
commit 7d7f676260
4419 changed files with 170950 additions and 90273 deletions

28
mcs/tests/test-961.cs Normal file
View File

@@ -0,0 +1,28 @@
// Compiler options: -langversion:latest
using System;
public static class B {
public static void Main ()
{
}
static void Foo (this in int src)
{
D p = (in int a) => {};
}
}
delegate void D (in int arg);
class M
{
int this[in int a] { set { } }
public static implicit operator string (in M m) => null;
public M (in int arg) { }
public void Test2 (in int arg)
{
}
}

View File

@@ -64,7 +64,7 @@ class Tester
try {
await Task.Factory.StartNew (() => { throw new ArgumentException (); }).ConfigureAwait (false);
} catch (ArgumentException e) {
if (e.StackTrace.Contains (".MoveNext"))
if (e.StackTrace.Contains (".MoveNext") || e.StackTrace.Contains ("TestException_7 ()"))
throw new ApplicationException ();
}

22
mcs/tests/test-ref-12.cs Normal file
View File

@@ -0,0 +1,22 @@
// Compiler options: -unsafe
unsafe class X
{
public static void Main ()
{
void* pointer = null;
Bar (ref Foo (ref *(byte*)pointer));
}
static int field;
static ref int Foo (ref byte b)
{
return ref field;
}
static void Bar (ref int i)
{
}
}

View File

@@ -1 +1 @@
4fc8adbf4abf604dc4d7d7c0c6b1bc707fcd6916
de627d70ca0c8397bb021d757723e1de33485608