Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-524.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 913061a0281951244a4725d1ff19f12fe3607e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;

public class Foo
{
	public static int Main ()
	{
		try {
			lock (null) {
				return 1;
			}
		} catch (ArgumentNullException) {
		}

		for (int i = 0; i < 3; ++i) {
			object token = new object ();

			lock (token)
			{
				token = null;
			}
		}

		return 0;
	}
}