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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
bool2.C
blob
559b7d0761564be32c0bc3ed8626e03a9b3ef353
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
int main()
9
{
10
F f = { true, true };
11
12
if (int (f.b1) != 1)
13
return 1;
14
}