URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-5.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
/* PR opt/14288 */
/* { dg-do compile } */
/* { dg-options "-O -Wall" } */
volatile int sink;
extern int foo(int);
struct S
{
int x;
S() { x = foo(0); }
~S() { sink = x; }
};
int test(bool p)
{
return p ? foo(S().x) : 0; /* { dg-bogus "uninitialized" } */
}
Go to most recent revision | Compare with Previous | Blame | View Log