summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-03-21 15:29:28 +0000
committerKostya Serebryany <kcc@google.com>2012-03-21 15:29:28 +0000
commit3f56851f5c260ccb3f9dc2c0cea2235f67a93b39 (patch)
tree7d8bbf6a54f6b6ca874c271db85263fd85ff9f41
parent84a7f2e8e933d4248092a1d4d40964429e5e7721 (diff)
downloadbcm5719-llvm-3f56851f5c260ccb3f9dc2c0cea2235f67a93b39.tar.gz
bcm5719-llvm-3f56851f5c260ccb3f9dc2c0cea2235f67a93b39.zip
[asan] extend the test for long double bug
llvm-svn: 153190
-rw-r--r--compiler-rt/lib/asan/tests/asan_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_test.cc b/compiler-rt/lib/asan/tests/asan_test.cc
index b518d43a0b5..cf04c3e7fb7 100644
--- a/compiler-rt/lib/asan/tests/asan_test.cc
+++ b/compiler-rt/lib/asan/tests/asan_test.cc
@@ -1949,7 +1949,9 @@ TEST(AddressSanitizerMac, CFStringCreateCopy) {
// 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) {
OpenPOWER on IntegriCloud