[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / gtest-364.cs
blob23d4f984d868485288f6e054d896b03976052a58
1 using System;
3 namespace BugReport
5 class Program
7 public static int Main()
9 A a = new A();
10 a.Counter++;
11 if (a.Counter != null)
12 return 1;
13 ++a.Counter;
14 if (a.Counter != null)
15 return 2;
17 a.Counter = 0;
18 a.Counter++;
19 if (a.Counter != 1)
20 return 3;
21 ++a.Counter;
22 if (a.Counter != 2)
23 return 4;
25 Console.WriteLine ("OK");
26 return 0;
30 class A {
31 private int? _counter;
32 public int? Counter {
33 get { return _counter; }
34 set { _counter = value; }