Dead
[official-gcc.git] / gomp-20050608-branch / libstdc++-v3 / testsuite / 17_intro / headers_c++.cc
blob03c902a32171033e13bedd12ef3704cc13d28355
1 // 2001-01-01 bkoz
3 // Copyright (C) 2001 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 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 // 17.4.1.2 Headers
23 // This file tests C++ inclusion then C inclusion.
25 // C++ headers
26 #include <cassert>
27 #include <cctype>
28 #include <cerrno>
29 #include <cfloat>
30 #include <ciso646>
31 #include <climits>
32 #include <clocale>
33 #include <cmath>
34 #include <csetjmp>
35 #include <csignal>
36 #include <cstdarg>
37 #include <cstddef>
38 #include <cstdio>
39 #include <cstdlib>
40 #include <cstring>
41 #include <ctime>
43 // "C" headers
44 #include <assert.h>
45 #include <ctype.h>
46 #include <errno.h>
47 #include <float.h>
48 #include <iso646.h>
49 #include <limits.h>
50 #include <locale.h>
51 #include <math.h>
52 #include <setjmp.h>
53 #include <signal.h>
54 #include <stdarg.h>
55 #include <stddef.h>
56 #include <stdio.h>
57 #include <stdlib.h>
58 #include <string.h>
59 #include <time.h>
61 // "C++" headers that might not work if wchar_t support is disabled.
62 #include <bits/c++config.h>
63 #if _GLIBCXX_USE_WCHAR_T
64 #include <cwchar>
65 #include <cwctype>
66 #include <wchar.h>
67 #include <wctype.h>
68 #endif
70 // libstdc++/2992
71 namespace bar
73 int foo(const char *x)
74 { return strlen(x); }
78 int main() { return 0; }