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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [uninit-pr20644.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR 20644 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -Wuninitialized" } */
4
int foo ()
5
{
6
  int i = 0;
7
  int j;
8
 
9
  if (1 == i)
10
    return j;
11
 
12
  return 0;
13
}
14
 
15
int bar ()
16
{
17
  int i = 1;
18
  int j;
19
 
20
  if (1 == i)
21
    return j; /* { dg-warning "uninitialized" "uninitialized" { target *-*-* } 18 } */
22
 
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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