[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / 20090121-1.C
blobddfa3ad057ffda4d4ca85ccc2d4dd64890325540
1 // { dg-do compile }
2 // { dg-require-effective-target lto }
3 // { dg-options "-flto -Wuninitialized -O2" }
4 class A
6 private:
7   int y;
9 public:
10   A () { int x; y = x + 1; } /* { dg-warning "'x' is used uninitialized in this function" }  */
11   int get_y () { return y; }
14 int foo()
16   A a;
17   return a.get_y ();