summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-09-02 09:17:51 +0000
committerAlexey Samsonov <samsonov@google.com>2013-09-02 09:17:51 +0000
commitbbd5f46696e00240ff8e08c6bfb7f2b6bb7dac77 (patch)
tree81c106b16e4f50b0b1b8e7a0aab2a65bc3b52ec9 /compiler-rt/lib
parentf9ab351b8a9f80a8d9e7001bdde39507f5b1ba04 (diff)
downloadbcm5719-llvm-bbd5f46696e00240ff8e08c6bfb7f2b6bb7dac77.tar.gz
bcm5719-llvm-bbd5f46696e00240ff8e08c6bfb7f2b6bb7dac77.zip
[ASan] Make blacklist test more robust
llvm-svn: 189748
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r--compiler-rt/lib/asan/lit_tests/TestCases/blacklist.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/blacklist.cc b/compiler-rt/lib/asan/lit_tests/TestCases/blacklist.cc
index 5e6d4c897e0..46625ee7bdb 100644
--- a/compiler-rt/lib/asan/lit_tests/TestCases/blacklist.cc
+++ b/compiler-rt/lib/asan/lit_tests/TestCases/blacklist.cc
@@ -12,8 +12,10 @@
// RUN: %clangxx_asan -fsanitize-blacklist=%tmp -O3 %s -o %t \
// RUN: %p/Helpers/blacklist-extra.cc && %t 2>&1
-// badGlobal is accessed improperly, but we blacklisted it.
-int badGlobal;
+// badGlobal is accessed improperly, but we blacklisted it. Align
+// it to make sure memory past the end of badGlobal will be in
+// the same page.
+__attribute__((aligned(16))) int badGlobal;
int readBadGlobal() {
return (&badGlobal)[1];
}
OpenPOWER on IntegriCloud