summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr25183.c
blob: 0157b806c7dc8fa2628703b8960c812405ff1682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-options "-pedantic" } */

enum err {
  err_IO = 0x8a450000, /* { dg-warning "int" } */
  err_NM,
  err_EOF,
  err_SE,
  err_PT
};
static enum err E_;
int error()
{
  switch (E_) {
    case err_IO : break; 
    case err_NM : break; 
    case err_EOF : break;
    case err_SE : break; 
    case err_PT : break; 
    default : return 0;
  }
}