Skip to content

Commit

Permalink
[libcxx] Delete pointer in shared_ptr deduction test.
Browse files Browse the repository at this point in the history
Updates the dummy deleter in deduction.pass.cpp to delete the pointer argument. This will fix the asan bots.
  • Loading branch information
zoecarver committed May 8, 2020
1 parent 7b1f1cf commit afc8b49
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -23,7 +23,10 @@
struct A {};

struct D {
void operator()(void*) const {}
void operator()(A* ptr) const
{
delete ptr;
}
};

int main(int, char**)
Expand Down

0 comments on commit afc8b49

Please sign in to comment.