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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [uninit-B-2.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Origin: PR c/179 inverse of uninit-B-O0.c, we should not warn.  */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -Wuninitialized" } */
4
extern void foo (int *);
5
extern void bar (int);
6
 
7
void
8
baz (void)
9
{
10
  int i;
11
  foo (&i); /* { dg-bogus "is used uninitialized" "uninit i warning" } */
12
  if (i)
13
    bar (i);
14
}
15
 
16
 

powered by: WebSVN 2.1.0

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