mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-14 03:45:33 +00:00
d21b3d346a
Like r367463, but for test/msan. llvm-svn: 367653
21 lines
273 B
C++
21 lines
273 B
C++
// 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;
|
|
}
|