URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 826 |
/* Origin: PR c/179 from Gray Watson <gray@256.com>, adapted as a testcase
|
/* Origin: PR c/179 from Gray Watson <gray@256.com>, adapted as a testcase
|
by Joseph Myers <jsm28@cam.ac.uk>. */
|
by Joseph Myers <jsm28@cam.ac.uk>. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -Wuninitialized" } */
|
/* { dg-options "-O2 -Wuninitialized" } */
|
extern void foo (int *);
|
extern void foo (int *);
|
extern void bar (int);
|
extern void bar (int);
|
|
|
void
|
void
|
baz (void)
|
baz (void)
|
{
|
{
|
int i;
|
int i;
|
if (i) /* { dg-warning "is used uninitialized" "uninit i warning" { xfail *-*-* } } */
|
if (i) /* { dg-warning "is used uninitialized" "uninit i warning" { xfail *-*-* } } */
|
bar (i);
|
bar (i);
|
foo (&i);
|
foo (&i);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.