projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mcs] Add codegen for null operator on result of awaited instance expression of prope...
[mono.git]
/
mcs
/
tests
/
test-async-11.cs
diff --git
a/mcs/tests/test-async-11.cs
b/mcs/tests/test-async-11.cs
index 157ce5034bf57bf1f9907b9337feb1ee99147caa..11a02cb83ddcf3e5a10cdedc91be6959e15f1e21 100644
(file)
--- a/
mcs/tests/test-async-11.cs
+++ b/
mcs/tests/test-async-11.cs
@@
-1,5
+1,3
@@
-// Compiler options: -langversion:future
-
using System;
using System.Threading;
using System.Threading.Tasks;
using System;
using System.Threading;
using System.Threading.Tasks;
@@
-24,7
+22,7
@@
class G<T>
{
T[] a = new T[] { t };
return Call (t, a[0], out t,
{
T[] a = new T[] { t };
return Call (t, a[0], out t,
- await Task.Factory.StartNew (() => 3));
+ await Task.Factory.StartNew (() => 3)
.ConfigureAwait (false)
);
}
int Call (T t1, T t2, out T t3, int i)
}
int Call (T t1, T t2, out T t3, int i)
@@
-74,7
+72,7
@@
class C
int v = 9;
var array = new ulong[] { ulong.MaxValue };
return new C ().TestCall (ref v, typeof (string), new S () { value = 4 }, array [0],
int v = 9;
var array = new ulong[] { ulong.MaxValue };
return new C ().TestCall (ref v, typeof (string), new S () { value = 4 }, array [0],
- await Task.Factory.StartNew (() => 3));
+ await Task.Factory.StartNew (() => 3)
.ConfigureAwait (false)
);
}
int TestCall2<T1, T2, T3, T4, T5, T6, T7> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7)
}
int TestCall2<T1, T2, T3, T4, T5, T6, T7> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7)
@@
-86,7
+84,7
@@
class C
{
short v = 2;
return new C ().TestCall2 ((byte) 1, v, value = 9999, float.MaxValue, double.MaxValue, decimal.MaxValue,
{
short v = 2;
return new C ().TestCall2 ((byte) 1, v, value = 9999, float.MaxValue, double.MaxValue, decimal.MaxValue,
- await Task.Factory.StartNew (() => 3));
+ await Task.Factory.StartNew (() => 3)
.ConfigureAwait (false)
);
}
static async Task<int> TestStack_3 ()
}
static async Task<int> TestStack_3 ()
@@
-98,7
+96,7
@@
class C
s2[0, 0].value = 3;
TestCall3 (ref s [0], ref s2 [0, 0], s [0].value++,
s2[0, 0].value = 3;
TestCall3 (ref s [0], ref s2 [0, 0], s [0].value++,
- await Task.Factory.StartNew (() => 3));
+ await Task.Factory.StartNew (() => 3)
.ConfigureAwait (false)
);
if (s [0].value != 10)
return 1;
if (s [0].value != 10)
return 1;
@@
-123,7
+121,7
@@
class C
var a3 = new [] { new C () };
return TestCall4 (a1[0], a2[0], a3[0],
var a3 = new [] { new C () };
return TestCall4 (a1[0], a2[0], a3[0],
- await Task.Factory.StartNew (() => 3));
+ await Task.Factory.StartNew (() => 3)
.ConfigureAwait (false)
);
}
static int TestCall4 (E e, S s, C c, int i)
}
static int TestCall4 (E e, S s, C c, int i)
@@
-150,7
+148,7
@@
class C
c.prop_value = 99;
return 3;
c.prop_value = 99;
return 3;
- });
+ })
.ConfigureAwait (false)
;
if (c.get_called != 1)
return 1;
if (c.get_called != 1)
return 1;