Imported Upstream version 5.12.0.220

Former-commit-id: c477e03582759447177c6d4bf412cd2355aad476
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-04-24 09:31:23 +00:00
parent 8bd104cef2
commit 8fc30896db
1200 changed files with 29534 additions and 26161 deletions

View File

@@ -1,4 +1,4 @@
// Compiler options: -langversion:7.2 -unsafe
// Compiler options: -langversion:7.2 /unsafe
using System;
@@ -7,10 +7,16 @@ class X
public static void Main ()
{
Span<int> stackSpan = stackalloc int[100];
bool b = false;
var r1 = !b ? stackalloc char[1] : throw null;
var r2 = b ? throw null : stackalloc char[1];
var r3 = b ? stackalloc char[1] : stackalloc char[2];
}
// Disables verifier
unsafe void Foo ()
{
}
}
}