Skip to content

Commit 907dc86

Browse files
committed
fix a formatting and an unused error
1 parent b15279b commit 907dc86

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/beman/execution/stopsource-cons.test.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@
88
#include <cstddef>
99
#include <cstring>
1010

11+
// NOLINTNEXTLINE(hicpp-no-malloc)
12+
#if false && (not defined(__clang__) || not defined(__SANITIZE_THREAD__))
1113
namespace {
1214
bool fail{};
13-
1415
}
1516

16-
// NOLINTNEXTLINE(hicpp-no-malloc)
17-
#if false && (not defined(__clang__) || not defined(__SANITIZE_THREAD__))
1817
auto operator new(::std::size_t size) -> void* { return fail ? throw ::std::bad_alloc() : ::std::malloc(size); }
1918

2019
auto operator delete(void* ptr) noexcept -> void { ::std::free(ptr); } // NOLINT(hicpp-no-malloc)
2120
auto operator delete(void* ptr, ::std::size_t) noexcept -> void { ::std::free(ptr); } // NOLINT(hicpp-no-malloc)
2221
#endif
2322

2423
TEST(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;

0 commit comments

Comments
 (0)