[arm64] Add the full neon regs to the context
[mono.git] / mcs / tests / gtest-453.cs
1 using System;
2
3 namespace Test
4 {
5         public enum Enum
6         {
7                 One,
8                 Two
9         }
10
11         class CompilerTest
12         {
13                 public static int Main ()
14                 {
15                         ThisWorksFine ();
16                         ThisDoesNotWork ();
17                         return 0;
18                 }
19
20                 protected static int DoSomething<T> (string s, T t, ref T t2)
21                 {
22                         Console.WriteLine ("s={0}", s);
23                         Console.WriteLine ("t={0}", t.ToString ());
24                         Console.WriteLine ("t2={0}", t2.ToString ());
25
26                         t2 = default (T);
27                         return 0;
28                 }
29
30                 public static void ThisDoesNotWork ()
31                 {
32                         Enum? e = Enum.One;
33                         DoSomething ("abc", Enum.Two, ref e);
34                 }
35
36                 public static void ThisWorksFine ()
37                 {
38                         Enum e = Enum.Two;
39                         DoSomething ("abc", Enum.Two, ref e);
40                         Console.WriteLine ("e={0}", e.ToString ());
41                 }
42         }
43 }