blob: 2c76d982ea6e6478fbcc6ecd01e3bdbe3b221db2 [file] [log] [blame]
Duncan Sands5fe97a02010-11-25 21:39:17 +00001// RUN: %llvmgxx -S %s -o /dev/null
Dale Johannesen466af3e2009-04-23 18:04:04 +00002// g++.old-deja/g++.jason/bool2.C from gcc testsuite.
3// Crashed before 67975 went in.
4struct F {
5 bool b1 : 1;
6 bool b2 : 7;
7};
8
9int main()
10{
11 F f = { true, true };
12
13 if (int (f.b1) != 1)
14 return 1;
15}