2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / bool2.C
blobe77bd848725e69c3a911613e94102372f1c217ba
1 // { dg-do run  }
2 // Make sure that bool bitfields promote to int properly.
4 struct F {
5   bool b1 : 1;
6   bool b2 : 7;
7 };
9 int main()
11   F f = { true, true };
13   if (int (f.b1) != 1)
14     return 1;