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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-5.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* PR opt/14288 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -Wall" } */
4
 
5
volatile int sink;
6
extern int foo(int);
7
 
8
struct S
9
{
10
  int x;
11
 
12
  S() { x = foo(0); }
13
  ~S() { sink = x; }
14
};
15
 
16
int test(bool p)
17
{
18
  return p ? foo(S().x) : 0;    /* { dg-bogus "uninitialized" } */
19
}

powered by: WebSVN 2.1.0

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