blob: e6d6c07604ef1e50fc6f0bf36fe4b1bfe374f423 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <iterator>
// front_insert_iterator
// front_insert_iterator<Cont>& operator++();
#include <iterator>
#include <list>
#include <cassert>
#include "nasty_containers.hpp"
template <class C>
void
test(C c)
{
std::front_insert_iterator<C> i(c);
std::front_insert_iterator<C>& r = ++i;
assert(&r == &i);
}
int main()
{
test(std::list<int>());
test(nasty_list<int>());
}