☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
bool2.C
☽
☼
gcc/testsuite/g++.old-deja/g++.jason/bool2.C
code
plain
raw
1
// { dg-do run }
2
// Make sure that bool bitfields promote to int properly.
3
4
struct F {
5
bool b1 : 1;
6
bool b2 : 7;
7
};
8
9
int main()
10
{
11
F f = { true, true };
12
13
if (int (f.b1) != 1)
14
return 1;
15
}