2015-01-13 10:44:36 +00:00
|
|
|
// Compiler options: -unsafe
|
2014-08-13 10:39:27 +01:00
|
|
|
//
|
|
|
|
// Tests the valid value types for volatile fields.
|
|
|
|
//
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
interface R {
|
|
|
|
}
|
|
|
|
|
|
|
|
enum XX {
|
|
|
|
A
|
|
|
|
}
|
|
|
|
|
2015-01-13 10:44:36 +00:00
|
|
|
struct S {
|
|
|
|
}
|
|
|
|
|
2014-08-13 10:39:27 +01:00
|
|
|
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;
|
2015-01-13 10:44:36 +00:00
|
|
|
unsafe volatile ushort* uc;
|
|
|
|
unsafe volatile XX* udd;
|
|
|
|
unsafe volatile S* us;
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
public static void Main () {}
|
|
|
|
}
|