repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-10-20 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-263.cs
blob
d0a3b7473a8985eb64e2306e57a4843a6b8c7403
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
}