Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-201.cs
1 using System;
2 using MSG = System.Collections.Generic;
3
4 public class HashSet<T>
5 {
6         long value;
7
8         public HashSet (long value)
9         {
10                 this.value = value;
11         }
12
13         public long Test ()
14         {
15                 return value;
16         }
17
18         public MSG.IEnumerator<long> GetEnumerator()
19         {
20                 yield return Test ();
21         }
22 }
23
24 class X
25 {
26         public static int Main ()
27         {
28                 HashSet<int> hb = new HashSet<int> (12345678);
29
30                 foreach (long value in hb) {
31                         if (value != 12345678)
32                                 return 1;
33                 }
34
35                 return 0;
36         }
37 }