Imported Upstream version 4.6.0.125

Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-08-03 10:59:49 +00:00
parent a569aebcfd
commit e79aa3c0ed
17047 changed files with 3137615 additions and 392334 deletions

View File

@@ -27,13 +27,13 @@ class C
int TestInstance ()
{
Expression<Func<EmptyDelegate>> e = () => M;
if (e.Body.ToString () != "Convert(CreateDelegate(EmptyDelegate, value(C), Void M()))")
if (e.Body.ToString () != "Convert(Void M().CreateDelegate(EmptyDelegate, value(C)))")
return 1;
e.Compile () ();
Expression<Func<C, EmptyDelegate>> e2 = (l) => l.M;
if (e2.Body.ToString () != "Convert(CreateDelegate(EmptyDelegate, l, Void M()))")
if (e2.Body.ToString () != "Convert(Void M().CreateDelegate(EmptyDelegate, l))")
return 2;
e2.Compile () (this);
@@ -43,8 +43,7 @@ class C
public static int Main ()
{
Expression<Func<EmptyDelegate>> e = () => new EmptyDelegate (Test);
if (e.Body.ToString () != "Convert(CreateDelegate(EmptyDelegate, null, Void Test()))")
if (e.Body.ToString () != "Convert(Void Test().CreateDelegate(EmptyDelegate, null))")
return 1;
var v = e.Compile ();
@@ -54,7 +53,7 @@ class C
return 2;
Expression<Func<EmptyDelegate>> e2 = () => Test;
if (e2.Body.ToString () != "Convert(CreateDelegate(EmptyDelegate, null, Void Test()))")
if (e2.Body.ToString () != "Convert(Void Test().CreateDelegate(EmptyDelegate, null))")
return 3;
var v2 = e2.Compile ();
@@ -65,7 +64,7 @@ class C
unsafe {
Expression<Func<UnsafeDelegate>> e3 = () => new UnsafeDelegate (Foo);
if (e3.Body.ToString () != "Convert(CreateDelegate(UnsafeDelegate, null, Int32* Foo()))")
if (e3.Body.ToString () != "Convert(Int32* Foo().CreateDelegate(UnsafeDelegate, null))")
return 5;
var v3 = e3.Compile ();