Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
#include <memory>

int main(int, char**) {
std::allocate_shared<int[]>(std::allocator<int>{}, 10);
std::make_shared<int[]>(10);
(void)std::allocate_shared<int[]>(std::allocator<int>{}, 10);
(void)std::make_shared<int[]>(10);

std::allocate_shared<int[10]>(std::allocator<int>{});
std::make_shared<int[10]>();
(void)std::allocate_shared<int[10]>(std::allocator<int>{});
(void)std::make_shared<int[10]>();

return 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ TEST_CONSTEXPR_CXX23 bool test() {
std::bitset<std::numeric_limits<unsigned long long>::digits + 1> q(0);
q.flip();
try {
q.to_ullong(); // throws
(void)q.to_ullong(); // throws
assert(false);
} catch (const std::overflow_error&) {
// expected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ TEST_CONSTEXPR_CXX23 bool test() {
std::bitset<std::numeric_limits<unsigned long>::digits + 1> q(0);
q.flip();
try {
q.to_ulong(); // throws
(void)q.to_ulong(); // throws
assert(false);
} catch (const std::overflow_error&) {
// expected
Expand Down
Loading