Mark tests that replace operator new/delete as UNSUPPORTED with ASAN and MSAN.

tests that replace operator new/delete won't link when using ASAN and MSAN 
because these sanitizers also replace new/delete.


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@221236 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier 2014-11-04 05:11:41 +00:00
parent 1de15f518f
commit 72aab5f478
32 changed files with 68 additions and 6 deletions

View File

@ -12,6 +12,8 @@
// template <InputIterator Iter> // template <InputIterator Iter>
// iterator insert(const_iterator position, Iter first, Iter last); // iterator insert(const_iterator position, Iter first, Iter last);
// UNSUPPORTED: asan
#if _LIBCPP_DEBUG >= 1 #if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif #endif

View File

@ -11,6 +11,8 @@
// iterator insert(const_iterator position, size_type n, const value_type& x); // iterator insert(const_iterator position, size_type n, const value_type& x);
// UNSUPPORTED: asan
#if _LIBCPP_DEBUG >= 1 #if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif #endif

View File

@ -11,6 +11,8 @@
// iterator insert(const_iterator position, const value_type& x); // iterator insert(const_iterator position, const value_type& x);
// UNSUPPORTED: asan
#if _LIBCPP_DEBUG >= 1 #if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif #endif

View File

@ -7,7 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new[] // test operator new[]
#include <new> #include <new>
#include <cstddef> #include <cstddef>

View File

@ -7,7 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new [] (nothrow) // test operator new [] (nothrow)
#include <new> #include <new>
#include <cstddef> #include <cstddef>

View File

@ -7,7 +7,9 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new [] nothrow by replacing only operator new // test operator new [] nothrow by replacing only operator new
// UNSUPPORTED: asan
#include <new> #include <new>
#include <cstddef> #include <cstddef>

View File

@ -7,7 +7,9 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new[] replacement by replacing only operator new // test operator new[] replacement by replacing only operator new
// UNSUPPORTED: asan
#include <new> #include <new>
#include <cstddef> #include <cstddef>

View File

@ -7,7 +7,9 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new nothrow by replacing only operator new // test operator new nothrow by replacing only operator new
// UNSUPPORTED: asan
#include <new> #include <new>
#include <cstddef> #include <cstddef>

View File

@ -7,7 +7,9 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// test operator new replacement // test operator new replacement
// UNSUPPORTED: asan
#include <new> #include <new>
#include <cstddef> #include <cstddef>

View File

@ -13,6 +13,8 @@
// ~ctype(); // ~ctype();
// UNSUPPORTED: asan
#include <locale> #include <locale>
#include <cassert> #include <cassert>
#include <new> #include <new>

View File

@ -17,6 +17,8 @@
// // unspecified // // unspecified
// }; // };
// UNSUPPORTED: asan
// Not a portable test // Not a portable test
#include <codecvt> #include <codecvt>

View File

@ -17,6 +17,8 @@
// // unspecified // // unspecified
// }; // };
// UNSUPPORTED: asan
// Not a portable test // Not a portable test
#include <codecvt> #include <codecvt>

View File

@ -14,6 +14,8 @@
// wbuffer_convert(streambuf *bytebuf = 0, Codecvt *pcvt = new Codecvt, // wbuffer_convert(streambuf *bytebuf = 0, Codecvt *pcvt = new Codecvt,
// state_type state = state_type()); // state_type state = state_type());
// UNSUPPORTED: asan
#include <locale> #include <locale>
#include <codecvt> #include <codecvt>
#include <sstream> #include <sstream>

View File

@ -11,6 +11,8 @@
// locale() throw(); // locale() throw();
// UNSUPPORTED: asan
#include <locale> #include <locale>
#include <new> #include <new>
#include <cassert> #include <cassert>

View File

@ -11,6 +11,8 @@
// template <class Facet> locale combine(const locale& other) const; // template <class Facet> locale combine(const locale& other) const;
// UNSUPPORTED: asan
#include <locale> #include <locale>
#include <new> #include <new>
#include <cassert> #include <cassert>

View File

@ -14,6 +14,8 @@
// template <MoveConstructible R, MoveConstructible ... ArgTypes> // template <MoveConstructible R, MoveConstructible ... ArgTypes>
// void swap(function<R(ArgTypes...)>&, function<R(ArgTypes...)>&); // void swap(function<R(ArgTypes...)>&, function<R(ArgTypes...)>&);
// UNSUPPORTED: asan
#include <functional> #include <functional>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -13,6 +13,8 @@
// function(nullptr_t); // function(nullptr_t);
// UNSUPPORTED: asan
#include <functional> #include <functional>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -16,6 +16,8 @@
// && Convertible<Callable<F, ArgTypes...>::result_type // && Convertible<Callable<F, ArgTypes...>::result_type
// operator=(F f); // operator=(F f);
// UNSUPPORTED: asan
#include <functional> #include <functional>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -13,6 +13,8 @@
// template<class A> function(allocator_arg_t, const A&, const function&); // template<class A> function(allocator_arg_t, const A&, const function&);
// UNSUPPORTED: asan
#include <functional> #include <functional>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -13,6 +13,8 @@
// template<class A> function(allocator_arg_t, const A&, function&&); // template<class A> function(allocator_arg_t, const A&, function&&);
// UNSUPPORTED: asan
#include <functional> #include <functional>
#include <cassert> #include <cassert>

View File

@ -13,6 +13,8 @@
// function(const function& f); // function(const function& f);
// UNSUPPORTED: asan
#include <functional> #include <functional>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -13,6 +13,8 @@
// function& operator=(const function& f); // function& operator=(const function& f);
// UNSUPPORTED: asan
#include <functional> #include <functional>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -13,6 +13,8 @@
// function& operator=(nullptr_t); // function& operator=(nullptr_t);
// UNSUPPORTED: asan
#include <functional> #include <functional>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -13,6 +13,8 @@
// void swap(function& other); // void swap(function& other);
// UNSUPPORTED: asan
#include <functional> #include <functional>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -12,6 +12,8 @@
// allocator: // allocator:
// pointer allocate(size_type n, allocator<void>::const_pointer hint=0); // pointer allocate(size_type n, allocator<void>::const_pointer hint=0);
// UNSUPPORTED: asan
#include <memory> #include <memory>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -12,6 +12,8 @@
// allocator: // allocator:
// template <class... Args> void construct(pointer p, Args&&... args); // template <class... Args> void construct(pointer p, Args&&... args);
// UNSUPPORTED: asan
#include <memory> #include <memory>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -11,6 +11,8 @@
// template<class Y> explicit shared_ptr(auto_ptr<Y>&& r); // template<class Y> explicit shared_ptr(auto_ptr<Y>&& r);
// UNSUPPORTED: asan
#include <memory> #include <memory>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -13,6 +13,8 @@
// template<class D> shared_ptr(nullptr_t, D d); // template<class D> shared_ptr(nullptr_t, D d);
// UNSUPPORTED: asan
#include <memory> #include <memory>
#include <cassert> #include <cassert>
#include <new> #include <new>

View File

@ -13,6 +13,8 @@
// template<class Y, class D> shared_ptr(Y* p, D d); // template<class Y, class D> shared_ptr(Y* p, D d);
// UNSUPPORTED: asan
#include <memory> #include <memory>
#include <cassert> #include <cassert>
#include <new> #include <new>

View File

@ -11,6 +11,8 @@
// template<class Y> explicit shared_ptr(Y* p); // template<class Y> explicit shared_ptr(Y* p);
// UNSUPPORTED: asan
#include <memory> #include <memory>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -11,6 +11,8 @@
// template <class Y, class D> explicit shared_ptr(unique_ptr<Y, D>&&r); // template <class Y, class D> explicit shared_ptr(unique_ptr<Y, D>&&r);
// UNSUPPORTED: asan
#include <memory> #include <memory>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>

View File

@ -13,6 +13,8 @@
// template<class T, class... Args> shared_ptr<T> make_shared(Args&&... args); // template<class T, class... Args> shared_ptr<T> make_shared(Args&&... args);
// UNSUPPORTED: asan
#include <memory> #include <memory>
#include <new> #include <new>
#include <cstdlib> #include <cstdlib>