Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr60351.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* PR c/60351 */ |
2 /* { dg-do compile } */ | |
3 | |
4 void | |
5 f (int i) | |
6 { | |
7 i >> -1; /* { dg-warning "5:right shift count is negative" } */ | |
8 i >> 250; /* { dg-warning "5:right shift count >= width of type" } */ | |
9 i << -1; /* { dg-warning "5:left shift count is negative" } */ | |
10 i << 250; /* { dg-warning "5:left shift count >= width of type" } */ | |
11 } |