Browse Source

test: isolate declarations

Michele Caini 1 year ago
parent
commit
a75f864c4f
1 changed files with 4 additions and 2 deletions
  1. 4 2
      test/entt/core/memory.cpp

+ 4 - 2
test/entt/core/memory.cpp

@@ -22,7 +22,8 @@ TEST(ToAddress, Functionalities) {
 }
 
 TEST(PoccaPocmaAndPocs, Functionalities) {
-    test::basic_test_allocator<int> lhs, rhs;
+    test::basic_test_allocator<int> lhs;
+    test::basic_test_allocator<int> rhs;
     test::basic_test_allocator<int, std::false_type> no_pocs;
 
     // code coverage purposes
@@ -36,7 +37,8 @@ TEST(PoccaPocmaAndPocs, Functionalities) {
 }
 
 ENTT_DEBUG_TEST(PoccaPocmaAndPocsDeathTest, Functionalities) {
-    test::basic_test_allocator<int, std::false_type> lhs, rhs;
+    test::basic_test_allocator<int, std::false_type> lhs;
+    test::basic_test_allocator<int, std::false_type> rhs;
 
     ASSERT_DEATH(entt::propagate_on_container_swap(lhs, rhs), "");
 }