"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / tests / gtest-lambda-12.cs
blobfd47109dddb897430e08748fc2fe90fd94a4d610
3 using System;
5 public delegate void Func<TA> (TA arg0);
7 class Demo
9 static void F<T> (T[] values, T value, Func<T> f)
11 Console.WriteLine (values [0]);
12 f (value);
13 Console.WriteLine (values [0]);
16 public static int Main ()
18 int[] a = new int [] { 10 };
19 F (a, 5, i => a [0] = i);
21 if (a [0] != 5)
22 return 1;
24 return 0;