URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/gnu-stable/gcc-4.5.1/libstdc++-v3/testsuite/17_intro
- from Rev 816 to Rev 826
- ↔ Reverse comparison
Rev 816 → Rev 826
/using_namespace_std.cc
0,0 → 1,25
// { dg-do compile } |
|
// Copyright (C) 2007, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
#include <new> |
|
namespace gnu |
{ |
using namespace std; |
} |
/headers/c++200x/all_pedantic_errors.cc
0,0 → 1,21
// { dg-do compile } |
// { dg-options "-std=gnu++0x -pedantic-errors" } |
|
// Copyright (C) 2007, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
#include <bits/extc++.h> |
/headers/c++200x/stdc++_multiple_inclusion.cc
0,0 → 1,111
// FreeBSD wants warning clean system headers: |
// { dg-options "-Wall -Wsystem-headers" { target *-*-freebsd* } } |
// { dg-options "-std=gnu++0x" } |
// { dg-do compile } |
|
// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
// 17.4.1.2 Headers |
|
#include <bits/stdc++.h> |
|
// "C" compatibility headers |
#include <assert.h> |
#ifdef _GLIBCXX_HAVE_COMPLEX_H |
#include <complex.h> |
#endif |
#include <ctype.h> |
#include <errno.h> |
#ifdef _GLIBCXX_HAVE_FENV_H |
#include <fenv.h> |
#endif |
#include <float.h> |
#ifdef _GLIBCXX_HAVE_INTTYPES_H |
#include <inttypes.h> |
#endif |
#include <iso646.h> |
#include <limits.h> |
#include <locale.h> |
#include <math.h> |
#include <setjmp.h> |
#include <signal.h> |
#include <stdarg.h> |
#ifdef _GLIBCXX_HAVE_STDBOOL_H |
#include <stdbool.h> |
#endif |
#include <stddef.h> |
#ifdef _GLIBCXX_HAVE_STDINT_H |
#include <stdint.h> |
#endif |
#include <stdio.h> |
#include <stdlib.h> |
#include <string.h> |
#ifdef _GLIBCXX_HAVE_TGMATH_H |
#include <tgmath.h> |
#endif |
#include <time.h> |
#ifdef _GLIBCXX_HAVE_WCHAR_H |
#include <wchar.h> |
#endif |
#ifdef _GLIBCXX_HAVE_WCTYPE_H |
#include <wctype.h> |
#endif |
|
#include <bits/stdc++.h> |
|
// "C" compatibility headers |
#include <assert.h> |
#ifdef _GLIBCXX_HAVE_COMPLEX_H |
#include <complex.h> |
#endif |
#include <ctype.h> |
#include <errno.h> |
#ifdef _GLIBCXX_HAVE_FENV_H |
#include <fenv.h> |
#endif |
#include <float.h> |
#ifdef _GLIBCXX_HAVE_INTTYPES_H |
#include <inttypes.h> |
#endif |
#include <iso646.h> |
#include <limits.h> |
#include <locale.h> |
#include <math.h> |
#include <setjmp.h> |
#include <signal.h> |
#include <stdarg.h> |
#ifdef _GLIBCXX_HAVE_STDBOOL_H |
#include <stdbool.h> |
#endif |
#include <stddef.h> |
#ifdef _GLIBCXX_HAVE_STDINT_H |
#include <stdint.h> |
#endif |
#include <stdio.h> |
#include <stdlib.h> |
#include <string.h> |
#ifdef _GLIBCXX_HAVE_TGMATH_H |
#include <tgmath.h> |
#endif |
#include <time.h> |
#ifdef _GLIBCXX_HAVE_WCHAR_H |
#include <wchar.h> |
#endif |
#ifdef _GLIBCXX_HAVE_WCTYPE_H |
#include <wctype.h> |
#endif |
/headers/c++200x/42319.cc
0,0 → 1,22
// { dg-do compile } |
// { dg-options "-std=gnu++0x" } |
|
// Copyright (C) 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
// libstdc++/42319 |
#include <bits/char_traits.h> |
/headers/c++200x/stdc++.cc
0,0 → 1,68
// FreeBSD wants warning clean system headers: |
// { dg-options "-Wall -Wsystem-headers" { target *-*-freebsd* } } |
// { dg-options "-std=gnu++0x" } |
// { dg-do compile } |
|
// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
// 17.4.1.2 Headers |
|
#include <bits/stdc++.h> |
|
// "C" compatibility headers |
#include <assert.h> |
#ifdef _GLIBCXX_HAVE_COMPLEX_H |
#include <complex.h> |
#endif |
#include <ctype.h> |
#include <errno.h> |
#ifdef _GLIBCXX_HAVE_FENV_H |
#include <fenv.h> |
#endif |
#include <float.h> |
#ifdef _GLIBCXX_HAVE_INTTYPES_H |
#include <inttypes.h> |
#endif |
#include <iso646.h> |
#include <limits.h> |
#include <locale.h> |
#include <math.h> |
#include <setjmp.h> |
#include <signal.h> |
#include <stdatomic.h> |
#include <stdarg.h> |
#ifdef _GLIBCXX_HAVE_STDBOOL_H |
#include <stdbool.h> |
#endif |
#include <stddef.h> |
#ifdef _GLIBCXX_HAVE_STDINT_H |
#include <stdint.h> |
#endif |
#include <stdio.h> |
#include <stdlib.h> |
#include <string.h> |
#ifdef _GLIBCXX_HAVE_TGMATH_H |
#include <tgmath.h> |
#endif |
#include <time.h> |
#ifdef _GLIBCXX_HAVE_WCHAR_H |
#include <wchar.h> |
#endif |
#ifdef _GLIBCXX_HAVE_WCTYPE_H |
#include <wctype.h> |
#endif |
/headers/c++200x/all_no_exceptions.cc
0,0 → 1,21
// { dg-do compile } |
// { dg-options "-std=gnu++0x -fno-exceptions" } |
|
// Copyright (C) 2007, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
#include <bits/extc++.h> |
/headers/c++200x/all_no_rtti.cc
0,0 → 1,21
// { dg-do compile } |
// { dg-options "-std=gnu++0x -fno-rtti" } |
|
// Copyright (C) 2010 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
#include <bits/extc++.h> |
/headers/c++1998/all_pedantic_errors.cc
0,0 → 1,21
// { dg-do compile } |
// { dg-options "-pedantic-errors" } |
|
// Copyright (C) 2007, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
#include <bits/extc++.h> |
/headers/c++1998/stdc++_assert_neg.cc
0,0 → 1,35
// { dg-do compile } |
// { dg-options "-D_GLIBCXX_NO_ASSERT" } |
// NB: This is done to force any generated and possibly included PCH |
// to be invalid, and also to remove cassert from the include set. |
|
// 2005-05-24 bkoz |
|
// Copyright (C) 2005, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
// 17.4.1.2 Headers |
|
// This file tests that assert is not included in any of the standard |
// includes by accident. |
|
#include <bits/stdc++.h> |
|
void foo() |
{ |
assert(true); // { dg-error "not declared" "" { target *-*-* } } |
} |
/headers/c++1998/stdc++_multiple_inclusion.cc
0,0 → 1,75
// FreeBSD wants warning clean system headers: |
// { dg-options "-Wall -Wsystem-headers" { target *-*-freebsd* } } |
// { dg-do compile } |
// 1999-05-12 bkoz |
|
// Copyright (C) 1999, 2007, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
// 17.4.1.2 Headers |
|
#include <bits/stdc++.h> |
|
// "C" compatibility headers |
#include <assert.h> |
#include <ctype.h> |
#include <errno.h> |
#include <float.h> |
#include <iso646.h> |
#include <limits.h> |
#include <locale.h> |
#include <math.h> |
#include <setjmp.h> |
#include <signal.h> |
#include <stdarg.h> |
#include <stddef.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <string.h> |
#include <time.h> |
#ifdef _GLIBCXX_HAVE_WCHAR_H |
#include <wchar.h> |
#endif |
#ifdef _GLIBCXX_HAVE_WCTYPE_H |
#include <wctype.h> |
#endif |
|
#include <bits/stdc++.h> |
|
// "C" compatibility headers |
#include <assert.h> |
#include <ctype.h> |
#include <errno.h> |
#include <float.h> |
#include <iso646.h> |
#include <limits.h> |
#include <locale.h> |
#include <math.h> |
#include <setjmp.h> |
#include <signal.h> |
#include <stdarg.h> |
#include <stddef.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <string.h> |
#include <time.h> |
#ifdef _GLIBCXX_HAVE_WCHAR_H |
#include <wchar.h> |
#endif |
#ifdef _GLIBCXX_HAVE_WCTYPE_H |
#include <wctype.h> |
#endif |
/headers/c++1998/all_c++200x_compatibility.cc
0,0 → 1,24
// { dg-do compile } |
// { dg-options "-Wc++0x-compat -Werror" } |
|
// Copyright (C) 2007, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
// Make sure all the includes can be compiled with -Wc++0x-compat |
// libstdc++/30571 |
|
#include <bits/extc++.h> |
/headers/c++1998/stdc++.cc
0,0 → 1,49
// FreeBSD wants warning clean system headers: |
// { dg-options "-Wall -Wsystem-headers" { target *-*-freebsd* } } |
// { dg-do compile } |
// 1999-05-12 bkoz |
|
// Copyright (C) 1999, 2007, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
// 17.4.1.2 Headers |
|
#include <bits/stdc++.h> |
|
// "C" compatibility headers |
#include <assert.h> |
#include <ctype.h> |
#include <errno.h> |
#include <float.h> |
#include <iso646.h> |
#include <limits.h> |
#include <locale.h> |
#include <math.h> |
#include <setjmp.h> |
#include <signal.h> |
#include <stdarg.h> |
#include <stddef.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <string.h> |
#include <time.h> |
#ifdef _GLIBCXX_HAVE_WCHAR_H |
#include <wchar.h> |
#endif |
#ifdef _GLIBCXX_HAVE_WCTYPE_H |
#include <wctype.h> |
#endif |
/headers/c++1998/all_no_exceptions.cc
0,0 → 1,21
// { dg-do compile } |
// { dg-options "-fno-exceptions" } |
|
// Copyright (C) 2007, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
#include <bits/extc++.h> |
/headers/c++1998/all_no_rtti.cc
0,0 → 1,21
// { dg-do compile } |
// { dg-options "-fno-rtti" } |
|
// Copyright (C) 2010 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
#include <bits/extc++.h> |
/headers/c++1998/all.cc
0,0 → 1,20
// { dg-do compile } |
|
// Copyright (C) 2007, 2009 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
#include <bits/extc++.h> |
/freestanding.cc
0,0 → 1,50
// { dg-options "-x c -std=gnu++0x -lsupc++" } |
|
// Copyright (C) 2010 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
#include <cstdarg> |
#include <cstddef> |
#include <cstdlib> |
|
#include <exception> |
#include <limits> |
#include <new> |
#include <typeinfo> |
|
#include <initializer_list> |
#include <type_traits> |
|
int main() |
{ |
std::exception e; |
|
const char* str __attribute__((unused)) = typeid(e).name(); |
|
typedef std::numeric_limits<long> limit_type; |
limit_type limit_l __attribute__((unused)); |
int r __attribute__((unused)) = limit_type::radix; |
|
const char* cp = new char; |
delete cp; |
|
bool b __attribute__((unused)) = std::is_integral<int>::value; |
|
std::initializer_list<int> ilisti __attribute__((unused)); |
|
return 0; |
} |
/using_namespace_std_tr1_neg.cc
0,0 → 1,69
// { dg-options "-std=gnu++0x" } |
// { dg-do compile } |
|
// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
// |
// This file is part of the GNU ISO C++ Library. This library is free |
// software; you can redistribute it and/or modify it under the |
// terms of the GNU General Public License as published by the |
// Free Software Foundation; either version 3, or (at your option) |
// any later version. |
|
// This library is distributed in the hope that it will be useful, |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
|
// You should have received a copy of the GNU General Public License along |
// with this library; see the file COPYING3. If not see |
// <http://www.gnu.org/licenses/>. |
|
// NB: parallel-mode uses TR1 bits... |
#undef _GLIBCXX_PARALLEL |
|
#include <algorithm> |
#include <array> |
#include <bitset> |
#include <complex> |
#include <deque> |
#include <exception> |
#include <fstream> |
#include <functional> |
#include <iomanip> |
#include <ios> |
#include <iosfwd> |
#include <iostream> |
#include <istream> |
#include <iterator> |
#include <limits> |
#include <list> |
#include <locale> |
#include <map> |
#include <memory> |
#include <new> |
#include <numeric> |
#include <ostream> |
#include <queue> |
#include <random> |
#include <regex> |
#include <set> |
#include <sstream> |
#include <stack> |
#include <stdexcept> |
#include <streambuf> |
#include <string> |
#include <tuple> |
#include <typeinfo> |
#include <type_traits> |
#include <unordered_map> |
#include <unordered_set> |
#include <utility> |
#include <valarray> |
#include <vector> |
|
namespace gnu |
{ |
using namespace std::tr1; // { dg-error "is not a namespace-name" } |
} |
|
// { dg-error "expected namespace-name before" "" { target *-*-* } 66 } |