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
Reset branch to trunk.
[official-gcc.git]
/
trunk
/
gcc
/
testsuite
/
g++.dg
/
expr
/
bitfield9.C
blob
177f65b8800dbfc74b6040bb7799c9e709685920
1
// PR c++/32346
2
// { dg-do run }
3
// { dg-options "-Wno-overflow" }
4
5
extern "C" void abort();
6
7
struct S {
8
long long i : 32;
9
};
10
11
void f(int i, int j) {
12
if (i != 0xabcdef01)
13
abort();
14
if (j != 0)
15
abort();
16
}
17
18
void g(S s) {
19
f(s.i, 0);
20
}
21
22
int main() {
23
S s;
24
s.i = 0xabcdef01;
25
g(s);
26
}