summaryrefslogtreecommitdiff
path: root/test/msan/icmp_slt_allones.cc
blob: 8eff2eac8ad925e0f30e841f1e468d4b209f149f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR24561
// RUN: %clangxx_msan -O2 -g %s -o %t && %run %t

#include <stdio.h>

struct A {
  int c1 : 7;
  int c8 : 1;
  int c9 : 1;
  A();
};

__attribute__((noinline)) A::A() : c8(1) {}

int main() {
  A* a = new A();
  if (a->c8 == 0)
    printf("zz\n");
  return 0;
}