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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-5.C] - Diff between revs 149 and 154

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" } */
}
}
 
 

powered by: WebSVN 2.1.0

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