PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / tc1 / dr85.C
blob31dde8cbb5d429e5b111fceabc1c8f3bcb9186ef
1 // { dg-do compile }
2 // Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3 // DR85: Redeclaration of member class
5 struct Base {
6   struct Data {};  
7   struct Data;  // { dg-error "" "redeclaration of nested class is invalid" { xfail *-*-* } }
8 };