Merge pull request #4202 from marek-safar/compression
[mono-project.git] / mcs / tests / test-251.cs
blob3b2ffbaa9c4fa39f33a807eed0b583d09026e8f8
1 // Compiler options: -unsafe
2 //
3 // Tests the valid value types for volatile fields.
4 //
6 using System;
8 interface R {
11 enum XX {
15 struct S {
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;
37 public static void Main () {}