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
http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
bitfield1.C
blob
496999613137c495702547bf0680e983ef3a89b3
1
// PR c++/26534
2
// { dg-do run }
3
// { dg-options "-w -O2" }
4
5
struct X
6
{
7
unsigned a:4;
8
};
9
10
unsigned i;
11
12
int main()
13
{
14
struct X x = { 63u };
15
i = x.a;
16
if (i != 15)
17
return 1;
18
}