brintos

brintos / llvm-project-archived public Read only

0
0
Text · 273 B · 8eff2ea Raw
21 lines · cpp
1// PR245612// RUN: %clangxx_msan -O2 -g %s -o %t && %run %t3 4#include <stdio.h>5 6struct A {7  int c1 : 7;8  int c8 : 1;9  int c9 : 1;10  A();11};12 13__attribute__((noinline)) A::A() : c8(1) {}14 15int main() {16  A* a = new A();17  if (a->c8 == 0)18    printf("zz\n");19  return 0;20}21