[compiler-rt] r175514 - [asan] don't run the long double test if long double is the same as double
Kostya Serebryany
kcc at google.com
Tue Feb 19 05:43:45 PST 2013
Author: kcc
Date: Tue Feb 19 07:43:44 2013
New Revision: 175514
URL: http://llvm.org/viewvc/llvm-project?rev=175514&view=rev
Log:
[asan] don't run the long double test if long double is the same as double
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=175514&r1=175513&r2=175514&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Tue Feb 19 07:43:44 2013
@@ -171,6 +171,7 @@ TEST(AddressSanitizer, UAF_char) {
}
TEST(AddressSanitizer, UAF_long_double) {
+ if (sizeof(long double) == sizeof(double)) return;
long double *p = Ident(new long double[10]);
EXPECT_DEATH(Ident(p)[12] = 0, "WRITE of size 10");
EXPECT_DEATH(Ident(p)[0] = Ident(p)[12], "READ of size 10");
More information about the llvm-commits
mailing list