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
Merged with mainline at revision 128810.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
bitfield3.C
blob
3221263a9066931c415c82271ee27cb145baca68
1
// PR c++/30274
2
3
struct S {
4
bool x : 4;
5
};
6
7
S s;
8
9
void f() {
10
s.x--; // { dg-error "Boolean expression" }
11
--s.x; // { dg-error "Boolean expression" }
12
}