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
2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
[mcs.git]
/
errors
/
cs0420.cs
blob
1db316032084e3dd3f0a2be23ab1079757ab9dd2
1
// cs0420.cs: `X.j': A volatile fields cannot be passed using a ref or out parameter
2
// Line: 10
3
// Compiler options: -unsafe /warnaserror /warn:1
4
5
unsafe class
X
{
6
static volatile int
j
;
7
8
static void
Main
()
9
{
10
fixed
(
int
*
p
= &
j
){
11
12
}
13
}
14
}