]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail232.d
d: Synchronize testsuite with upstream dmd
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail232.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail232.d(15): Error: shift by 33 is outside the range `0..31`
5 fail_compilation/fail232.d(15): Error: shift by 33 is outside the range `0..31`
6 fail_compilation/fail232.d(16): Error: shift by 33 is outside the range `0..31`
7 fail_compilation/fail232.d(16): Error: shift by 33 is outside the range `0..31`
8 fail_compilation/fail232.d(17): Error: shift by 33 is outside the range `0..31`
9 fail_compilation/fail232.d(17): Error: shift by 33 is outside the range `0..31`
10 ---
11 */
12 void bug1601() {
13 int i;
14
15 i = i >> 33;
16 i = i << 33;
17 i = i >>> 33;
18 }