projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Wed Oct 17 13:24:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
[mono.git]
/
mcs
/
errors
/
cs1708.cs
1
// CS1708: `S.array': Fixed size buffers can only be accessed through locals or fields
2
// Line: 27
3
// Compiler options: -unsafe
4
5
using System;
6
7
unsafe struct S
8
{
9
public fixed int array [2];
10
}
11
12
class C
13
{
14
unsafe public S Get ()
15
{
16
return new S ();
17
}
18
}
19
20
public class Tester
21
{
22
public static void Main() { }
23
24
unsafe void setName()
25
{
26
C c = new C();
27
c.Get ().array [1] = 44;
28
}
29
}
30