diff options
Diffstat (limited to 'compiler-rt/test/msan/icmp_slt_allones.cpp')
| -rw-r--r-- | compiler-rt/test/msan/icmp_slt_allones.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/compiler-rt/test/msan/icmp_slt_allones.cpp b/compiler-rt/test/msan/icmp_slt_allones.cpp new file mode 100644 index 00000000000..8eff2eac8ad --- /dev/null +++ b/compiler-rt/test/msan/icmp_slt_allones.cpp @@ -0,0 +1,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; +} |

