OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [Wunreachable-3.c] - Blame information for rev 645

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR c/10175 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wunreachable-code" } */
4
 
5
int i,j;
6
int main(void)
7
{
8
  if (0) {
9
    i = 0;                  /* { dg-warning "will never be executed" "" } */
10
    j = 0;
11
  } else {
12
    i = 1;
13
    j = 1;
14
  }
15
 
16
  return 0;
17
}

powered by: WebSVN 2.1.0

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