blob: 3ae88ca191c1dba8ff3e08e0f2be7116382c7796 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// PR c++/19618
struct bset1 {
bool bit : sizeof(bool) * __CHAR_BIT__ + 1; // { dg-warning "exceeds" }
};
enum E {};
struct bset2 {
E bit : sizeof(E) * __CHAR_BIT__ + 1; // { dg-warning "exceeds" }
};
struct bset3 {
bool bit : sizeof(bool) * __CHAR_BIT__;
};
struct bset4 {
E bit : sizeof(E) * __CHAR_BIT__;
};
|