OSDN Git Service

Some raw string changes from N3077
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / bitfield3.C
1 // PR c++/33841
2 // { dg-do compile }
3
4 template<int> struct A
5 {
6   struct {} : 2;        // { dg-error "with non-integral type" }
7 };
8
9 template<int> struct B
10 {
11   int a;
12   struct {} : 2;        // { dg-error "with non-integral type" }
13   int b;
14 };
15
16 struct C : A<0> {};
17 struct D : B<0> {};