[asan] don't run the long double test if long double is the same as double

llvm-svn: 175514
This commit is contained in:
Kostya Serebryany 2013-02-19 13:43:44 +00:00
parent 477e88ee9e
commit 96401c9da9
1 changed files with 1 additions and 0 deletions

View File

@ -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");