[llvm-commits] [compiler-rt] r153190 - /compiler-rt/trunk/lib/asan/tests/asan_test.cc
Kostya Serebryany
kcc at google.com
Wed Mar 21 08:29:29 PDT 2012
Author: kcc
Date: Wed Mar 21 10:29:28 2012
New Revision: 153190
URL: http://llvm.org/viewvc/llvm-project?rev=153190&view=rev
Log:
[asan] extend the test for long double bug
Modified:
compiler-rt/trunk/lib/asan/tests/asan_test.cc
Modified: compiler-rt/trunk/lib/asan/tests/asan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_test.cc?rev=153190&r1=153189&r2=153190&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Wed Mar 21 10:29:28 2012
@@ -1949,7 +1949,9 @@
// See http://llvm.org/bugs/show_bug.cgi?id=12047 for more details.
TEST(AddressSanitizer, LongDoubleNegativeTest) {
long double a, b;
+ static long double c;
memcpy(Ident(&a), Ident(&b), sizeof(long double));
+ memcpy(Ident(&c), Ident(&b), sizeof(long double));
};
int main(int argc, char **argv) {
More information about the llvm-commits
mailing list