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
[Facades] Move IncrementalHash to System.Security.Cryptography.Algorithms facade
[mono-project.git]
/
mcs
/
tests
/
test-async-71.cs
blob
2b7c425f8b11c2617d4a81dd8533c7cef64d6f7d
1
// Compiler options: -unsafe
2
3
using
System
;
4
using
System
.
Threading
.
Tasks
;
5
6
class
UnsafeContext
7
{
8
static int
Main
()
9
{
10
if
(
TestUnsafe
(
1
).
Result
!=
0
)
11
return
1
;
12
13
return
0
;
14
}
15
16
static async
Task
<
int
>
TestUnsafe
(
int
g
)
17
{
18
unsafe
{
19
int
*
ga
= &
g
;
20
}
21
22
await
Task
.
Yield
();
23
return
0
;
24
}
25
}