1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // <iterator>
10 
11 // front_insert_iterator
12 
13 // explicit front_insert_iterator(Cont& x);
14 
15 #include <iterator>
16 #include <list>
17 #include "nasty_containers.h"
18 
19 #include "test_macros.h"
20 
21 template <class C>
22 void
test(C c)23 test(C c)
24 {
25     std::front_insert_iterator<C> i(c);
26 }
27 
main(int,char **)28 int main(int, char**)
29 {
30     test(std::list<int>());
31     test(nasty_list<int>());
32 
33   return 0;
34 }
35