projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR c++/30274 (bool bit-field: wrong increment and decremenet)
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
bitfield4.C
1
// PR c++/30274
2
// { dg-do link }
3
4
struct S {
5
bool x : 4;
6
};
7
8
S s;
9
10
template <typename T>
11
void f(T);
12
13
template <>
14
void f(bool) {}
15
16
int main() {
17
f(s.x++);
18
f(++s.x);
19
}