This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git] / test / FrontendC++ / 2009-04-23-bool2.cpp
blob2c76d982ea6e6478fbcc6ecd01e3bdbe3b221db2
1 // RUN: %llvmgxx -S %s -o /dev/null
2 // g++.old-deja/g++.jason/bool2.C from gcc testsuite.
3 // Crashed before 67975 went in.
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;