| 66 | } |
| 67 | |
| 68 | void useDynLess() { |
| 69 | // this is on the heap because the size is chosen dynamically |
| 70 | std::unique_ptr<unsigned char[]> temp(new unsigned char[memlimit1]); |
| 71 | stream_parser p(get_null_resource(), |
| 72 | opt, |
| 73 | temp.get(), |
| 74 | memlimit1); |
| 75 | |
| 76 | // this is on the heap because the size is chosen dynamically |
| 77 | std::unique_ptr<unsigned char[]> buf(new unsigned char[memlimit2]); |
| 78 | static_resource mr2( buf.get(), memlimit2 ); |
| 79 | p.reset( &mr2 ); |
| 80 | |
| 81 | run(p); |
| 82 | } |
| 83 | |
| 84 | }; |
| 85 |
no test coverage detected