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

test-556.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4b428032bd43d5385f7b2dc228e1ce2f950ed4c6 (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
34
35
36
37
38
using System;
using System.Collections;

public class S 
{
	public void Frobnikator() 
	{
		const UInt32 SMALL_MASK = (1U << (24)) - 1; 
		const ulong BIG_MASK = ~((ulong)SMALL_MASK);
		
	}
	
	public void CharToX ()
	{
		const char c = 'a';
		
		const ushort us = c;
		const int i = c;
		const uint ui = c;
		const long l = c;
		const ulong ul= c;
		const float fl = c;
		const double d = c;
		const decimal dec = c;
	}

	public static int Main ()
	{
		long i = 1;
		int i2 = 0xA0;
		long b = i << i2;
		
		if (b != 4294967296)
			return 1;
			
		return 0;
	}	
}