projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bump NuGet.BuildTasks to get new updates and switch to `dev` branch (#5566)
[mono.git]
/
mcs
/
tests
/
test-919.cs
1
// Compiler options: -unsafe
2
3
class Test
4
{
5
public static void Main (string[] args)
6
{
7
string s = "hello, world!";
8
Outer (s);
9
}
10
11
static void Outer (string s)
12
{
13
unsafe {
14
fixed (char* sp = s) {
15
char* p = sp;
16
Inner (ref p, sp);
17
}
18
}
19
}
20
21
static unsafe void Inner (ref char* p, char* sp)
22
{
23
++sp;
24
p = sp;
25
}
26
}