projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5675 from mono/glib-debug-symbols
[mono.git]
/
mcs
/
tests
/
test-251.cs
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
}