Skip to content

Commit e10016e

Browse files
committed
Added more compile-time tests
1 parent 3d50b40 commit e10016e

File tree

5 files changed

+24
-1
lines changed

5 files changed

+24
-1
lines changed

tests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ 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_construct_raw_allowed" compile_test_observer_construct_raw.cpp FALSE)
6970
run_compile_test("is_observer_assign_raw_allowed" compile_test_observer_assign_raw.cpp FALSE)
71+
run_compile_test("is_acquire_construct_raw_allowed" compile_test_sealed_construct_raw.cpp FALSE)
72+
run_compile_test("is_acquire_assign_raw_allowed" compile_test_sealed_assign_raw.cpp FALSE)
7073

7174
message(STATUS "Running compile-time tests ended.")
7275

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "tests_common.hpp"
22

33
int main() {
4-
test_optr ptr(new test_object);
4+
test_optr ptr;
5+
ptr = new test_object;
56
return 0;
67
}
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+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tests_common.hpp"
2+
3+
int main() {
4+
test_sptr ptr;
5+
ptr = new test_object;
6+
return 0;
7+
}
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_sptr ptr(new test_object);
5+
return 0;
6+
}

0 commit comments

Comments
 (0)