Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/bitfld2.C

raw
1 // PR c++/33840
2 // { dg-do compile }
3
4 template<int> struct A
5 {
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 }