Skip to content

Commit 458a150

Browse files
committed
test for default_delete
1 parent 799c038 commit 458a150

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter.pass.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ int main(int, char**)
123123
}
124124
#endif
125125

126-
test_function_type();
127-
return 0;
126+
#if TEST_STD_VER >= 17
127+
{
128+
// See https://github.com/llvm/llvm-project/pull/93071#issuecomment-2166047398
129+
std::shared_ptr<char[]> a(new char[10], std::default_delete<char[]>());
130+
}
131+
#endif
132+
133+
test_function_type();
134+
return 0;
128135
}

0 commit comments

Comments
 (0)