From 96401c9da9ada65e6117b1cb814569515afe6e8c Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Tue, 19 Feb 2013 13:43:44 +0000 Subject: [PATCH] [asan] don't run the long double test if long double is the same as double llvm-svn: 175514 --- compiler-rt/lib/asan/tests/asan_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/lib/asan/tests/asan_test.cc b/compiler-rt/lib/asan/tests/asan_test.cc index f6d1c9e..1fcd2342 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"); -- 2.7.4