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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [20090121-1.C] - Blame information for rev 764

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-require-effective-target lto }
3
// { dg-options "-flto -Wuninitialized -O2" }
4
class A
5
{
6
private:
7
  int y;
8
 
9
public:
10
  A () { int x; y = x + 1; } /* { dg-warning "'x' is used uninitialized in this function" }  */
11
  int get_y () { return y; }
12
};
13
 
14
int foo()
15
{
16
  A a;
17
  return a.get_y ();
18
}
19
 

powered by: WebSVN 2.1.0

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