File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 88#include < cstddef>
99#include < cstring>
1010
11+ // NOLINTNEXTLINE(hicpp-no-malloc)
12+ #if false && (not defined(__clang__) || not defined(__SANITIZE_THREAD__))
1113namespace {
1214bool fail{};
13-
1415}
1516
16- // NOLINTNEXTLINE(hicpp-no-malloc)
17- #if false && (not defined(__clang__) || not defined(__SANITIZE_THREAD__))
1817auto operator new (::std::size_t size) -> void * { return fail ? throw ::std::bad_alloc () : ::std::malloc (size); }
1918
2019auto operator delete (void * ptr) noexcept -> void { ::std::free (ptr); } // NOLINT(hicpp-no-malloc)
2120auto operator delete (void * ptr, ::std::size_t ) noexcept -> void { ::std::free (ptr); } // NOLINT(hicpp-no-malloc)
2221#endif
2322
2423TEST (stopsource_cons) {
25- #if false && (not defined(__clang__) || not defined(__SANITIZE_THREAD__))
24+ #if false && (not defined(__clang__) || not defined(__SANITIZE_THREAD__))
2625 // Reference: [stopsource.cons] p1
2726 try {
2827 ::test_std::stop_source source;
You can’t perform that action at this time.
0 commit comments