repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[runtime] Avoid holding the init lock while calling the cctor in mono_runtime_class_i...
[mono-project.git]
/
mcs
/
tests
/
test-async-29.cs
blob
5681f7aeb79d096e6ff69e2cd6fc7679b0c0d863
1
using
System
;
2
using
System
.
Threading
.
Tasks
;
3
4
class
C
5
{
6
static async
Task
<
int
>
Test
()
7
{
8
await
Task
.
Yield
();
9
await
Task
.
Yield
();
10
await
Task
.
Yield
();
11
return
1
;
12
}
13
14
public static int
Main
()
15
{
16
Test
().
Wait
();
17
return
0
;
18
}
19
}