1*7c3d14c8STreehugger Robot // PR24561 2*7c3d14c8STreehugger Robot // RUN: %clangxx_msan -O2 -g %s -o %t && %run %t 3*7c3d14c8STreehugger Robot 4*7c3d14c8STreehugger Robot #include <stdio.h> 5*7c3d14c8STreehugger Robot 6*7c3d14c8STreehugger Robot struct A { 7*7c3d14c8STreehugger Robot int c1 : 7; 8*7c3d14c8STreehugger Robot int c8 : 1; 9*7c3d14c8STreehugger Robot int c9 : 1; 10*7c3d14c8STreehugger Robot A(); 11*7c3d14c8STreehugger Robot }; 12*7c3d14c8STreehugger Robot A()13*7c3d14c8STreehugger Robot__attribute__((noinline)) A::A() : c8(1) {} 14*7c3d14c8STreehugger Robot main()15*7c3d14c8STreehugger Robotint main() { 16*7c3d14c8STreehugger Robot A* a = new A(); 17*7c3d14c8STreehugger Robot if (a->c8 == 0) 18*7c3d14c8STreehugger Robot printf("zz\n"); 19*7c3d14c8STreehugger Robot return 0; 20*7c3d14c8STreehugger Robot } 21