blob: 33c2c02d736ca30b7c899d2ab385e71fa9c19046 [file] [log] [blame]
NAKAMURA Takumi500c1e12015-09-14 23:50:08 +00001// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm %s -o /dev/null
Eric Christopher20429e92011-08-19 22:16:21 +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}