Skip to content

Commit

Permalink
test: try to trick clang
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Dec 12, 2024
1 parent 295bbb2 commit abdbddf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/entt/meta/meta_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,10 +601,10 @@ TEST_F(MetaType, FromVoid) {
TEST_F(MetaType, FromVoidOwnership) {
bool check = false;
auto type = entt::resolve<from_void_callback>();
auto instance = std::make_unique<from_void_callback>(check);
void *instance = std::make_unique<from_void_callback>(check).release();

auto any = type.from_void(static_cast<void *>(instance.get()));
auto other = type.from_void(static_cast<void *>(instance.release()), true);
auto any = type.from_void(instance);
auto other = type.from_void(instance, true);

ASSERT_TRUE(any);
ASSERT_TRUE(other);
Expand Down

0 comments on commit abdbddf

Please sign in to comment.