OSDN Git Service

2007-03-04 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 17_intro / using_namespace_std_tr1_neg.cc
1 // { dg-options "-std=c++0x" }
2 // { dg-do compile }
3
4 // Copyright (C) 2007 Free Software Foundation, Inc.
5 //
6 // This file is part of the GNU ISO C++ Library.  This library is free
7 // software; you can redistribute it and/or modify it under the
8 // terms of the GNU General Public License as published by the
9 // Free Software Foundation; either version 2, or (at your option)
10 // any later version.
11
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 // GNU General Public License for more details.
16
17 // You should have received a copy of the GNU General Public License along
18 // with this library; see the file COPYING.  If not, write to the Free
19 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20 // USA.
21
22 #include <algorithm>
23 #include <array>
24 #include <bitset>
25 #include <complex>
26 #include <deque>
27 #include <exception>
28 #include <fstream>
29 #include <functional>
30 #include <iomanip>
31 #include <ios>
32 #include <iosfwd>
33 #include <iostream>
34 #include <istream>
35 #include <iterator>
36 #include <limits>
37 #include <list>
38 #include <locale>
39 #include <map>
40 #include <memory>
41 #include <new>
42 #include <numeric>
43 #include <ostream>
44 #include <queue>
45 #include <random>
46 #include <regex>
47 #include <set>
48 #include <sstream>
49 #include <stack>
50 #include <stdexcept>
51 #include <streambuf>
52 #include <string>
53 #include <tuple>
54 #include <typeinfo>
55 #include <type_traits>
56 #include <unordered_map>
57 #include <unordered_set>
58 #include <utility>
59 #include <valarray>
60 #include <vector>
61
62 namespace gnu
63 {
64   using namespace std::tr1;  // { dg-error "is not a namespace-name" }
65 }
66
67 // { dg-error "expected namespace-name before" "" { target *-*-* } 64 }