Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-251.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3b2ffbaa9c4fa39f33a807eed0b583d09026e8f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Compiler options: -unsafe
//
// Tests the valid value types for volatile fields.
//

using System;

interface R {
}

enum XX {
	A
}

struct S {
}

class X {
	volatile byte a;
	volatile sbyte b;
	volatile short c;
	volatile ushort d;
	volatile int e;
	volatile uint f;
	volatile char g;
	volatile float h;
	volatile bool i;
	volatile X x;
	volatile R r;
	volatile XX dd;
	volatile IntPtr ip;
	volatile UIntPtr uip;
	unsafe volatile ushort* uc;
	unsafe volatile XX* udd;
	unsafe volatile S* us;

	public static void Main () {}
}