You've already forked linux-packaging-mono
Imported Upstream version 3.8.0
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
This commit is contained in:
@ -8,10 +8,12 @@ using System.Runtime.CompilerServices;
|
||||
struct S
|
||||
{
|
||||
public int Value;
|
||||
public S2 s2;
|
||||
|
||||
public S (int a1, string a2)
|
||||
{
|
||||
Value = a1;
|
||||
s2 = new S2 ();
|
||||
}
|
||||
|
||||
public void SetValue (int value)
|
||||
@ -32,6 +34,11 @@ struct S
|
||||
}
|
||||
}
|
||||
|
||||
struct S2
|
||||
{
|
||||
public int Value;
|
||||
}
|
||||
|
||||
enum E
|
||||
{
|
||||
E_1 = 1
|
||||
@ -270,6 +277,21 @@ class Tester : Base
|
||||
return 0;
|
||||
}
|
||||
|
||||
async Task<bool> ArrayAccessTest_10 ()
|
||||
{
|
||||
var b = new bool [1] { true };
|
||||
|
||||
var r = b [await Task.Factory.StartNew (() => 0)];
|
||||
return r;
|
||||
}
|
||||
|
||||
async Task<bool> ArrayAccessTest_11 ()
|
||||
{
|
||||
var a = new S [1];
|
||||
a [await Task.Factory.StartNew (() => 0)].s2.Value += 5;
|
||||
return a [await Task.Factory.StartNew(() => 0)].s2.Value == 5;
|
||||
}
|
||||
|
||||
async Task<int> AssignTest_1 ()
|
||||
{
|
||||
field_int = await Task.Factory.StartNew (() => 0);
|
||||
@ -585,6 +607,18 @@ class Tester : Base
|
||||
var s = new S (await Task.Factory.StartNew (() => 77), await Task.Factory.StartNew (() => "b"));
|
||||
return s.Value == 77;
|
||||
}
|
||||
|
||||
async Task<int> NewDelegate_1 ()
|
||||
{
|
||||
var f = new Func<int> (await NewDelegate_1_0 ());
|
||||
return f ();
|
||||
}
|
||||
|
||||
static async Task<Func<int>> NewDelegate_1_0 ()
|
||||
{
|
||||
await Task.Factory.StartNew (() => { });
|
||||
return () => 0;
|
||||
}
|
||||
|
||||
async Task<int> NewInitTest_1 ()
|
||||
{
|
||||
|
Reference in New Issue
Block a user