| 21 | { |
| 22 | public: |
| 23 | void |
| 24 | test() |
| 25 | { |
| 26 | auto& mr = *get_null_resource(); |
| 27 | BOOST_TEST_THROWS( |
| 28 | mr.allocate(16), |
| 29 | std::bad_alloc); |
| 30 | char buf[128]; |
| 31 | // no-op |
| 32 | mr.deallocate(&buf[0], 128); |
| 33 | BOOST_TEST( |
| 34 | mr == *get_null_resource()); |
| 35 | } |
| 36 | |
| 37 | void |
| 38 | run() |
nothing calls this directly
no test coverage detected