Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / lock.cs
1 using System;
2
3 public class LockTest 
4 {
5         public class Test 
6         {
7                 public int val {
8                         get {
9                                 return(v);
10                         }
11                         set {
12                                 v=value;
13                         }
14                 }
15                 
16                 int v;
17         }
18         
19         public static void Main() {
20                 Test a=new Test();
21                 
22                 lock(a) {
23                         a.val=2;
24                 }
25                 Console.WriteLine("a is " + a.val);
26         }
27 }