summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-02-19 13:43:44 +0000
committerKostya Serebryany <kcc@google.com>2013-02-19 13:43:44 +0000
commit96401c9da9ada65e6117b1cb814569515afe6e8c (patch)
treee19d5f2c161de64fa7b4b0e54d20b2c77984faee
parent477e88ee9e13d6902e359f9af526ac2eee6407a0 (diff)
downloadbcm5719-llvm-96401c9da9ada65e6117b1cb814569515afe6e8c.tar.gz
bcm5719-llvm-96401c9da9ada65e6117b1cb814569515afe6e8c.zip
[asan] don't run the long double test if long double is the same as double
llvm-svn: 175514
-rw-r--r--compiler-rt/lib/asan/tests/asan_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_test.cc b/compiler-rt/lib/asan/tests/asan_test.cc
index f6d1c9ebc58..1fcd2342a6e 100644
--- a/compiler-rt/lib/asan/tests/asan_test.cc
+++ b/compiler-rt/lib/asan/tests/asan_test.cc
@@ -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");
OpenPOWER on IntegriCloud