Skip to content

Commit 73923e3

Browse files
committed
test for NULL
1 parent 343c329 commit 73923e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ int main(int, char**)
121121
auto deleter = [](auto pointer) { delete pointer; };
122122
std::shared_ptr<int> p(new int, deleter);
123123
}
124+
125+
{
126+
std::shared_ptr<int> p(NULL, [](auto){});
127+
}
124128
#endif
125129

126130
#if TEST_STD_VER >= 17

0 commit comments

Comments
 (0)