Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / libstdc++-v3 / testsuite / 27_io / basic_istream / extractors_other / char / 3.cc
blob6bb0e7f3a0cdd5bbdba8f35b3037b83ced995665
1 // 1999-07-28 bkoz
3 // Copyright (C) 1999, 2001, 2003 Free Software Foundation
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
8 // Free Software Foundation; either version 2, or (at your option)
9 // any later version.
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.
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING. If not, write to the Free
18 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 // USA.
21 // 27.6.1.2.3 basic_istream::operator>>
23 #include <istream>
24 #include <sstream>
25 #include <testsuite_hooks.h>
27 void test03()
29 using namespace std;
30 bool test __attribute__((unused)) = true;
32 // template<_CharT, _Traits>
33 // basic_istream& operator>>(ios_base& (*pf) (ios_base&))
35 int i = 0;
36 std::istringstream iss(" 43");
37 iss >> std::noskipws >> i;
38 VERIFY ( !iss ); //should set failbit
41 // template<_CharT, _Traits>
42 // basic_istream& operator>>(basic_ios& (*pf) (basic_ios&))
44 // template<_CharT, _Traits>
45 // basic_istream& operator>>(basic_istream& (*pf) (basic_istream&))
48 int main()
50 test03();
51 return 0;