Ticket #12872: icl_test.cpp
| File icl_test.cpp, 492 bytes (added by , 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | // TEST CASE - this causes a segfault in macOS with clang v5.0.0 |
| 2 | |
| 3 | #include <boost/icl/split_interval_set.hpp> |
| 4 | #include <vector> |
| 5 | #include <tuple> |
| 6 | |
| 7 | int main() { |
| 8 | auto ss = new boost::icl::split_interval_set<unsigned>(); |
| 9 | std::vector<std::pair<unsigned, unsigned>> rs = |
| 10 | {{88, 96}, {72, 96}, {80, 96}, {24, 64}, {80, 96}, {32, 72}, |
| 11 | {88, 96}, {16, 56}}; |
| 12 | for (const auto &r : rs) { |
| 13 | ss->add(boost::icl::interval<unsigned>::right_open(r.first, r.second)); |
| 14 | } |
| 15 | return ss->size(); |
| 16 | } |
