projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-07-24 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-263.cs
1
// Compiler options: -unsafe
2
3
using System;
4
5
class Test {
6
public String GetString (byte[] bytes)
7
{
8
unsafe {
9
int* i;
10
}
11
12
unsafe {
13
fixed (byte *ss = &bytes [0]) {
14
int* i;
15
return new String ((sbyte*)ss, 0, bytes.Length);
16
}
17
}
18
}
19
20
public static void Main () {}
21
}