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

box.cs « tests « mono - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6ca47d62b3ecc36db928a12a09bb66852fbdc3df (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
26
27
28
29
30
31
32
33
using System;
using System.IO;

public class Test {

	public static int boxtest ()
	{
		int i = 123;
		object o = i;

		int j = (int) o;

		if (i != j)
			return 1;
		
		return 0;
	}

	public static int Main () {
		string t = 123.ToString();

		if (t != "123")
			return 1;

		if (boxtest () != 0)
			return 1;

		
		return 0;
	}
}