Merged revisions 196716,196830,198094,198116,198502,198877,199007,199262,199319,19946...
[official-gcc.git] / main / libstdc++-v3 / testsuite / 23_containers / map / modifiers / erase / dr130-linkage-check.cc
blob9d7cde973f201dd0c452f2c2b773bcb0e666c175
1 // { dg-require-effective-target ia32 }
2 // { dg-require-sharedlib "" }
3 // { dg-options "-fno-inline -std=gnu++11 ./testsuite_shared.so" }
4 // 2013-06-03 Benjamin Kosnik <bkoz@redhat..com>
5 //
6 // Copyright (C) 2013 Free Software Foundation, Inc.
7 //
8 // This file is part of the GNU ISO C++ Library. This library is free
9 // software; you can redistribute it and/or modify it under the
10 // terms of the GNU General Public License as published by the
11 // Free Software Foundation; either version 3, or (at your option)
12 // any later version.
14 // This library is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
19 // You should have received a copy of the GNU General Public License along
20 // with this library; see the file COPYING3. If not see
21 // <http://www.gnu.org/licenses/>.
23 #include <testsuite_containers.h>
25 int main()
27 typedef std::map<int, int> container_type;
30 container_type s { {0,0} , {1,1} , {2,2} };
31 __gnu_test::linkage_check_cxx98_cxx11_erase(s);
35 container_type s { {0,0} , {1,1} , {2,2} };
36 __gnu_test::linkage_check_cxx98_cxx11_erase_iterators(s);
39 return 0;