summaryrefslogtreecommitdiff
path: root/mcs/tests/test-544.cs
blob: d56c5b2354f05532dad1a615399dc17fff9adaed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
enum ByteEnum : byte {
	One = 1,
	Two = 2
}

class X {
	public static void Main ()
	{
		ByteEnum b = ByteEnum.One;
		
		switch (b){
		case ByteEnum.One : return;
		case ByteEnum.One | ByteEnum.Two: return;
		}
	}
}