PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / tc1 / dr135.C
blobbeed8cdfd7fa3df0501a98123a5b8691c336b996
1 // { dg-do compile }
2 // Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3 // DR135: Class type in in-class member function definitions 
5 struct S {
6   S f() { return S(); }  // { dg-bogus "" "incomplete class type is allowed as return type" }
7   void g(S) { }          // { dg-bogus "" "incomplete class type is allowed as parameter type" }
8 };