projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow passing null to JsonArray.Add()
[mono.git]
/
mcs
/
tests
/
test-async-71.cs
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
}