OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr25183.c] - Blame information for rev 827

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-pedantic" } */
3
 
4
enum err {
5
  err_IO = 0x8a450000, /* { dg-warning "int" } */
6
  err_NM,
7
  err_EOF,
8
  err_SE,
9
  err_PT
10
};
11
static enum err E_;
12
int error()
13
{
14
  switch (E_) {
15
    case err_IO : break;  /* { dg-warning "overflow" } */
16
    case err_NM : break;  /* { dg-warning "overflow" } */
17
    case err_EOF : break; /* { dg-warning "overflow" } */
18
    case err_SE : break;  /* { dg-warning "overflow" } */
19
    case err_PT : break;  /* { dg-warning "overflow" } */
20
    default : return 0;
21
  }
22
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.