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
Initial revision
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
bool2.C
blob
4c0edcb3596bcb69297a068f451db2538ec61d82
1
// Make sure that bool bitfields promote to int properly.
2
3
struct F {
4
bool b1 : 1;
5
bool b2 : 7;
6
};
7
8
main()
9
{
10
F f = { true, true };
11
12
if (int (f.b1) != 1)
13
return 1;
14
}