summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/diagnostic/bitfld2.C
blob: 10b7d9cea501f3773287af9a213b5a681d5c1d8b (plain)
1
2
3
4
5
6
7
8
9
// PR c++/33840
// { dg-do compile }

template<int> struct A
{
  struct {} : 2;   // { dg-error "expected ';' after struct" }
};
// { dg-error "ISO C.. forbids declaration" "" { target *-*-* } 6 }
// { dg-error "ISO C.. prohibits anonymous" "" { target *-*-* } 6 }