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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [Wunreachable-5.c] - Blame information for rev 816

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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