Reenable AOT, it wasn't enabled on the x86 buildbot anyway.
[mcs.git] / tests / gtest-iter-10.cs
blob68c4f7dcdd7fdba4c3781d2bc7d3f5343f85d17e
1 using System;
2 using System.Collections.Generic;
4 class Test
6 static IEnumerable<int> FromTo (int from, int to)
8 while (from <= to) yield return from++;
11 static int Main ()
13 IEnumerable<int> e = FromTo (1, 10);
15 int i = 0;
16 foreach (int x in e) {
17 foreach (int y in e) {
18 i += y;
19 Console.Write ("{0,3} ", x * y);
21 Console.WriteLine ();
24 Console.WriteLine (i);
25 if (i != 550)
26 return i;
28 return 0;