repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
aarch64: Implement 16-byte vector mode const0 store by TImode
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
20090121-1.C
blob
9d70fb3601b9a74102cd50153154e16e48db0c75
1
// { 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" } */
11
int get_y () { return y; }
12
};
13
14
int foo()
15
{
16
A a;
17
return a.get_y ();
18
}
19