[compiler-rt] r245981 - [msan] Regression test for PR24561.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 15:20:15 PDT 2015
Author: eugenis
Date: Tue Aug 25 17:20:15 2015
New Revision: 245981
URL: http://llvm.org/viewvc/llvm-project?rev=245981&view=rev
Log:
[msan] Regression test for PR24561.
Fixed in r245980.
Added:
compiler-rt/trunk/test/msan/icmp_slt_allones.cc
Added: compiler-rt/trunk/test/msan/icmp_slt_allones.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/msan/icmp_slt_allones.cc?rev=245981&view=auto
==============================================================================
--- compiler-rt/trunk/test/msan/icmp_slt_allones.cc (added)
+++ compiler-rt/trunk/test/msan/icmp_slt_allones.cc Tue Aug 25 17:20:15 2015
@@ -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;
+}
More information about the llvm-commits
mailing list