summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2017-11-08 19:46:25 +0000
committerTeresa Johnson <tejohnson@google.com>2017-11-08 19:46:25 +0000
commit65964b0190520f92123c3b1adb7dce481179909b (patch)
treed5d975f68cc9a5b4eaa8df4bca59c298988eaede /test
parent07e2a968c83c489c5b46efe4973114e78e1804c1 (diff)
[ThinLTO] Ensure sanitizer passes are run
Summary: Test fix to pass manager for ThinLTO. Depends on D39565. Reviewers: pcc Subscribers: kubamracek, mehdi_amini, llvm-commits, inglorion Differential Revision: https://reviews.llvm.org/D39566 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@317715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/asan/TestCases/contiguous_container_crash.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/asan/TestCases/contiguous_container_crash.cc b/test/asan/TestCases/contiguous_container_crash.cc
index af2102e6a..fe9792888 100644
--- a/test/asan/TestCases/contiguous_container_crash.cc
+++ b/test/asan/TestCases/contiguous_container_crash.cc
@@ -4,6 +4,12 @@
// RUN: not %run %t bad-alignment 2>&1 | FileCheck --check-prefix=CHECK-BAD-ALIGNMENT %s
// RUN: %env_asan_opts=detect_container_overflow=0 %run %t crash
//
+// RUN: %clangxx_asan -flto=thin -O %s -o %t.thinlto
+// RUN: not %run %t.thinlto crash 2>&1 | FileCheck --check-prefix=CHECK-CRASH %s
+// RUN: not %run %t.thinlto bad-bounds 2>&1 | FileCheck --check-prefix=CHECK-BAD-BOUNDS %s
+// RUN: not %run %t.thinlto bad-alignment 2>&1 | FileCheck --check-prefix=CHECK-BAD-ALIGNMENT %s
+// RUN: %env_asan_opts=detect_container_overflow=0 %run %t.thinlto crash
+//
// Test crash due to __sanitizer_annotate_contiguous_container.
#include <assert.h>