PR libstdc++/83025 fix constraints for path overloads in <fstream>
[official-gcc.git] / libstdc++-v3 / testsuite / 17_intro / using_namespace_std_tr1_neg.cc
blobcea6e986e8a239955f5a6cb26258cc1b9478a700
1 // { dg-do compile { target c++11 } }
3 // Copyright (C) 2007-2017 Free Software Foundation, Inc.
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 3, 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 COPYING3. If not see
18 // <http://www.gnu.org/licenses/>.
20 // NB: parallel-mode uses TR1 bits...
21 #undef _GLIBCXX_PARALLEL
23 #include <algorithm>
24 #include <array>
25 #include <bitset>
26 #include <complex>
27 #include <deque>
28 #include <exception>
29 #include <fstream>
30 #include <functional>
31 #include <iomanip>
32 #include <ios>
33 #include <iosfwd>
34 #include <iostream>
35 #include <istream>
36 #include <iterator>
37 #include <limits>
38 #include <list>
39 #include <locale>
40 #include <map>
41 #include <memory>
42 #include <new>
43 #include <numeric>
44 #include <ostream>
45 #include <queue>
46 #include <random>
47 #include <regex>
48 #include <set>
49 #include <sstream>
50 #include <stack>
51 #include <stdexcept>
52 #include <streambuf>
53 #include <string>
54 #include <tuple>
55 #include <typeinfo>
56 #include <type_traits>
57 #include <unordered_map>
58 #include <unordered_set>
59 #include <utility>
60 #include <valarray>
61 #include <vector>
63 namespace gnu
65 using namespace std::tr1; // { dg-error "is not a namespace-name" }
68 // { dg-error "expected namespace-name before" "" { target *-*-* } 65 }