// { dg-do run { target c++11 } } #include #include #include #include struct T { int i; }; bool operator<(const T& l, const T& r) { return l.i < r.i; } struct L : std::less { }; using __gnu_test::CustomPointerAlloc; template class std::set>; void test01() { typedef CustomPointerAlloc alloc_type; typedef std::set test_type; test_type v; v.insert(T()); VERIFY( ++v.begin() == v.end() ); } int main() { test01(); }