[tuner] handle the case with multiple "preserve" attributes
[mono-project.git] / mcs / tests / test-830.cs
blobeb7566c2fbff438876fcdf8b667419046a66ebd3
1 using System;
2 using System.Collections.Generic;
4 public class MC
6 public struct ObjectInfo
8 public long Code;
11 public static int Main ()
13 var objects = new List<ObjectInfo> ();
14 long a = 1;
15 long b = 2;
17 ObjectInfo aa = new ObjectInfo ();
18 aa.Code = a;
20 ObjectInfo bb = new ObjectInfo ();
21 bb.Code = b;
23 objects.Add (aa);
24 objects.Add (bb);
26 int r1 = objects[0].Code.CompareTo (objects[1].Code);
27 int r2 = a.CompareTo (b);
28 if (r1 != r2) {
29 Console.WriteLine ("FAIL!");
30 return 1;
33 Console.WriteLine ("OK!");
34 return 0;