]>
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> |
21 | #include <utility> | |
cdd306be | 22 | |
43308b7e | 23 | void f() |
24 | { | |
25 | typedef std::forward_list<std::forward_list<std::pair<char, char> > > test_type; | |
ba24378e | 26 | test_type l('a', 'b'); // { dg-error "no matching" } |
43308b7e | 27 | } |