]>
Commit | Line | Data |
---|---|---|
be58e01d | 1 | // { dg-do compile { target c++11 } } |
cdd306be | 2 | |
fbd26352 | 3 | // Copyright (C) 2009-2019 Free Software Foundation, Inc. |
cdd306be | 4 | // |
5 | // This file is part of the GNU ISO C++ Library. This library is free | |
6 | // software; you can redistribute it and/or modify it under the | |
7 | // terms of the GNU General Public License as published by the | |
6bc9506f | 8 | // Free Software Foundation; either version 3, or (at your option) |
cdd306be | 9 | // any later version. |
43308b7e | 10 | |
cdd306be | 11 | // This library is distributed in the hope that it will be useful, |
12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | // GNU General Public License for more details. | |
43308b7e | 15 | |
cdd306be | 16 | // You should have received a copy of the GNU General Public License along |
6bc9506f | 17 | // with this library; see the file COPYING3. If not see |
18 | // <http://www.gnu.org/licenses/>. | |
cdd306be | 19 | |
43308b7e | 20 | #include <forward_list> |
cdd306be | 21 | |
43308b7e | 22 | void f() |
23 | { | |
24 | typedef std::forward_list<std::forward_list<int> > test_type; | |
ba24378e | 25 | test_type l(10, 1); // { dg-error "no matching" } |
43308b7e | 26 | } |
a9b768f8 | 27 | |
28 | // { dg-prune-output "iterator_traits" } |