[PR rtl-optimization/115876] Fix one of two ubsan reported issues in new ext-dce...
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / bitfld2.C
blob88e7ebf77ab78b0b4b6204cb33c2910c9b078e32
1 // PR c++/33840
2 // { dg-do compile }
4 template<int> struct A
6   struct {} : 2;   // { dg-error "expected ';' after struct" "expected" }
7 };
8 // { dg-error "ISO C.. forbids declaration" "declaration" { target *-*-* } 6 }
9 // { dg-error "10:ISO C.. prohibits anonymous" "anonymous" { target *-*-* } 6 }