* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / parse / bitfield2.C
blobf84cc673e57475e66fcafe77040c47c251f0512b
1 //PR c++/28053
3 struct X {};
5 struct A
7     X x : 2;            // { dg-error "non-integral type" }
8 };
9 struct B : A {};
11 template <typename T>
12 struct C
14   T t : 3;
17 C<int> c;
19 template <typename T>
20 struct D
22   T t : 3;              // { dg-error "non-integral type" }
25 D<double> d;            // { dg-message "required" }
27 template <typename T>
28 struct E
30   typedef T* U;
31   U t : 3;             // { dg-error "non-integral type" }
34 E<double> e;