[PATCH] D39566: [ThinLTO] Ensure sanitizer passes are run

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 2 13:33:03 PDT 2017


tejohnson created this revision.
Herald added subscribers: inglorion, mehdi_amini, kubamracek.

Test fix to pass manager for ThinLTO.

Depends on https://reviews.llvm.org/D39565.


https://reviews.llvm.org/D39566

Files:
  test/asan/TestCases/contiguous_container_crash.cc


Index: test/asan/TestCases/contiguous_container_crash.cc
===================================================================
--- test/asan/TestCases/contiguous_container_crash.cc
+++ 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>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39566.121360.patch
Type: text/x-patch
Size: 902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171102/a5b798d6/attachment.bin>


More information about the llvm-commits mailing list