Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-830.cs
1 using System;
2 using System.Collections.Generic;
3
4 public class MC
5 {
6         public struct ObjectInfo
7         {
8                 public long Code;
9         }
10
11         public static int Main ()
12         {
13                 var objects = new List<ObjectInfo> ();
14                 long a = 1;
15                 long b = 2;
16
17                 ObjectInfo aa = new ObjectInfo ();
18                 aa.Code = a;
19
20                 ObjectInfo bb = new ObjectInfo ();
21                 bb.Code = b;
22
23                 objects.Add (aa);
24                 objects.Add (bb);
25
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;
31                 }
32
33                 Console.WriteLine ("OK!");
34                 return 0;
35         }
36
37 }