OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libstdc++-v3/] [testsuite/] [17_intro/] [headers_c++.cc] - Blame information for rev 19

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 jlechner
// 2001-01-01 bkoz
2
 
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.
10
 
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.
15
 
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.
20
 
21
// 17.4.1.2 Headers
22
 
23
// This file tests C++ inclusion then C inclusion.
24
 
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>
42
 
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>
60
 
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
69
 
70
// libstdc++/2992
71
namespace bar
72
{
73
  int foo(const char *x)
74
  { return strlen(x); }
75
};
76
 
77
 
78
int main() { return 0; }
79
 
80
 
81
 
82
 
83
 
84
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.