summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c90-left-shift-1.c
blob: 755595f5c27c68d7c00dd89ce37a072891a5112e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */

enum E { A = -2 << 1 };
int i = -1 << 0;

int
f (int i)
{
  switch (i)
  case -1 << 0: break;
}