Skip to content

Commit db31147

Browse files
committed
Added compilation test for assigning raw pointer to observer
1 parent f7c9b40 commit db31147

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ run_compile_test("is_copy_assignment_allowed" compile_test_copy_assign.cpp FALSE
6666
run_compile_test("is_implicit_constructor_base_to_derived_allowed_acquire" compile_test_implicit_const_base_to_derived1.cpp FALSE)
6767
run_compile_test("is_implicit_constructor_base_to_derived_allowed_move" compile_test_implicit_const_base_to_derived2.cpp FALSE)
6868
run_compile_test("is_implicit_constructor_base_to_derived_allowed_move_with_deleter" compile_test_implicit_const_base_to_derived3.cpp FALSE)
69+
run_compile_test("is_observer_assign_raw_allowed" compile_test_observer_assign_raw.cpp FALSE)
6970

7071
message(STATUS "Running compile-time tests ended.")
7172

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include "tests_common.hpp"
2+
3+
int main() {
4+
test_optr ptr(new test_object);
5+
return 0;
6+
}

0 commit comments

Comments
 (0)