Add [[noreturn]] attribute to throw_bad_alloc_helper().
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@273819 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,14 +16,13 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#if TEST_HAS_FEATURE(address_sanitizer) \
|
||||
|| TEST_HAS_FEATURE(memory_sanitizer) \
|
||||
|| TEST_HAS_FEATURE(thread_sanitizer)
|
||||
#if defined(TEST_HAS_SANITIZERS)
|
||||
#define DISABLE_NEW_COUNT
|
||||
#endif
|
||||
|
||||
namespace detail
|
||||
{
|
||||
TEST_NORETURN
|
||||
inline void throw_bad_alloc_helper() {
|
||||
#ifndef TEST_HAS_NO_EXCEPTIONS
|
||||
throw std::bad_alloc();
|
||||
|
||||
Reference in New Issue
Block a user