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

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

//
// ~ constant folding
//
class X {
	const byte b = 0x0f;
	
	public static int Main ()
	{
		int x = ~b;
		byte bb = 0xf;
		
		if (~bb != x){
			Console.WriteLine ("{0:x}", x);
			return 1;
		}
		return 0;
	}
}