repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #4202 from marek-safar/compression
[mono-project.git]
/
mcs
/
tests
/
test-251.cs
blob
3b2ffbaa9c4fa39f33a807eed0b583d09026e8f8
1
// Compiler options: -unsafe
2
//
3
// Tests the valid value types for volatile fields.
4
//
5
6
using
System
;
7
8
interface
R
{
9
}
10
11
enum
XX
{
12
A
13
}
14
15
struct
S
{
16
}
17
18
class
X
{
19
volatile byte
a
;
20
volatile sbyte
b
;
21
volatile short
c
;
22
volatile ushort
d
;
23
volatile int
e
;
24
volatile uint
f
;
25
volatile char
g
;
26
volatile float
h
;
27
volatile bool
i
;
28
volatile
X x
;
29
volatile
R r
;
30
volatile
XX dd
;
31
volatile
IntPtr ip
;
32
volatile
UIntPtr uip
;
33
unsafe volatile ushort
*
uc
;
34
unsafe volatile
XX
*
udd
;
35
unsafe volatile
S
*
us
;
36
37
public static void
Main
() {}
38
}