Take stars out of types where they make more sense.
[mono-project.git] / mcs / tests / test-600.cs
blob608c588a4e09d1f85d8260e8efa6c3c5634dbf97
1 using System;
3 namespace Test
5 enum Key_byte : byte { A = 1}
6 enum Key_ulong : ulong { A = 1}
8 class Regression
10 public static int Main()
12 IntPtr a = new IntPtr (1);
13 UIntPtr b = new UIntPtr (1);
14 Key_byte k1 = (Key_byte)a;
15 Key_byte k2 = (Key_byte)b;
17 if (k1 != Key_byte.A)
18 return 1;
20 if (k2 != Key_byte.A)
21 return 2;
23 Key_ulong k1_u = (Key_ulong)a;
24 Key_ulong k2_u = (Key_ulong)b;
26 if (k1_u != Key_ulong.A)
27 return 1;
29 if (k2_u != Key_ulong.A)
30 return 2;
32 return 0;