Reduce TLS accesses. (#11487)
[mono-project.git] / mono / tests / outparm.cs
blobb7f9d3db150ea62953430595f8942ef09a5c106c
1 public class OutParm {
3 public static void out_param (out int n) {
4 n = 1;
6 public static void ref_param (ref int n) {
7 n += 2;
9 public static int Main () {
10 int n = 0;
11 out_param (out n);
12 if (n != 1)
13 return 1;
14 ref_param (ref n);
15 if (n != 3)
16 return 2;
17 return 0;