| 569 | |
| 570 | FL_TEST_CASE("fl::list - with non-POD types") { |
| 571 | struct TestStruct { |
| 572 | int value; |
| 573 | TestStruct(int v) : value(v) {} |
| 574 | TestStruct(const TestStruct&) = default; |
| 575 | TestStruct& operator=(const TestStruct&) = default; |
| 576 | bool operator==(const TestStruct& other) const { |
| 577 | return value == other.value; |
| 578 | } |
| 579 | }; |
| 580 | |
| 581 | list<TestStruct> lst; |
| 582 | lst.push_back(TestStruct(10)); |