URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* PR opt/14288 */
|
/* PR opt/14288 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O -Wall" } */
|
/* { dg-options "-O -Wall" } */
|
|
|
volatile int sink;
|
volatile int sink;
|
extern int foo(int);
|
extern int foo(int);
|
|
|
struct S
|
struct S
|
{
|
{
|
int x;
|
int x;
|
|
|
S() { x = foo(0); }
|
S() { x = foo(0); }
|
~S() { sink = x; }
|
~S() { sink = x; }
|
};
|
};
|
|
|
int test(bool p)
|
int test(bool p)
|
{
|
{
|
return p ? foo(S().x) : 0; /* { dg-bogus "uninitialized" } */
|
return p ? foo(S().x) : 0; /* { dg-bogus "uninitialized" } */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.