diff options
| author | Fangrui Song <maskray@google.com> | 2019-08-02 06:07:05 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-08-02 06:07:05 +0000 |
| commit | d21b3d346af2f6189638d853182e389555e7ccb9 (patch) | |
| tree | ef89086fd1492736105e73e06b3623df3b01df45 /compiler-rt/test/msan/icmp_slt_allones.cpp | |
| parent | 6db8c59f210af60d882f7aedc7c9dc95d41d9696 (diff) | |
| download | bcm5719-llvm-d21b3d346af2f6189638d853182e389555e7ccb9.tar.gz bcm5719-llvm-d21b3d346af2f6189638d853182e389555e7ccb9.zip | |
compiler-rt: Rename .cc file in test/msan to .cpp
Like r367463, but for test/msan.
llvm-svn: 367653
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; +} |

