| 1 |
// { dg-do compile { target c++17 } } |
| 2 |
|
| 3 |
#include <memory_resource> |
| 4 |
|
| 5 |
bool |
| 6 |
test_lwg3683(const std::pmr::polymorphic_allocator<int>& a) |
| 7 |
{ |
| 8 |
if (a == std::pmr::get_default_resource()) |
| 9 |
return true; |
| 10 |
if (std::pmr::get_default_resource() != a) |
| 11 |
return false; |
| 12 |
throw a; |
| 13 |
} |