blob: 9a73049fa221dad746ff934c1e7a5f2340aa3206 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
enum E { A = -2 << 1 }; /* { dg-error "constant expression" } */
int i = -1 << 0; /* { dg-error "constant expression" } */
int
f (int i)
{
switch (i)
case -1 << 0: break; /* { dg-error "constant expression" } */
}
|