view gcc/testsuite/gcc.dg/pr60351.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* PR c/60351 */
/* { dg-do compile } */

void
f (int i)
{
  i >> -1; /* { dg-warning "5:right shift count is negative" } */
  i >> 250; /* { dg-warning "5:right shift count >= width of type" } */
  i << -1; /* { dg-warning "5:left shift count is negative" } */
  i << 250; /* { dg-warning "5:left shift count >= width of type" } */
}