summaryrefslogtreecommitdiff
path: root/lib/asan/lit_tests
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
commitdcf154d08f770f7b683ebe58c80603029a773c68 (patch)
tree9685bd59d724ff9489b10c491a5201e0340a300b /lib/asan/lit_tests
parent642db076afad2d0c639e7adb25c6f0ed51536909 (diff)
downloadcompiler-rt-dcf154d08f770f7b683ebe58c80603029a773c68.tar.gz
compiler-rt-dcf154d08f770f7b683ebe58c80603029a773c68.tar.bz2
compiler-rt-dcf154d08f770f7b683ebe58c80603029a773c68.tar.xz
[ASan] Make blacklist test more robust
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189748 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/lit_tests')
-rw-r--r--lib/asan/lit_tests/TestCases/blacklist.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/asan/lit_tests/TestCases/blacklist.cc b/lib/asan/lit_tests/TestCases/blacklist.cc
index 5e6d4c89..46625ee7 100644
--- a/lib/asan/lit_tests/TestCases/blacklist.cc
+++ b/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];
}