repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* ru.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
bitfield12.C
blob
3ae88ca191c1dba8ff3e08e0f2be7116382c7796
1
// PR c++/19618
2
3
struct bset1 {
4
bool bit : sizeof(bool) * __CHAR_BIT__ + 1; // { dg-warning "exceeds" }
5
};
6
7
enum E {};
8
9
struct bset2 {
10
E bit : sizeof(E) * __CHAR_BIT__ + 1; // { dg-warning "exceeds" }
11
};
12
13
struct bset3 {
14
bool bit : sizeof(bool) * __CHAR_BIT__;
15
};
16
17
struct bset4 {
18
E bit : sizeof(E) * __CHAR_BIT__;
19
};