Debian Codegraph @

libstdc++-v3/testsuite/17_intro/headers/c++2011/linkage.cc

raw
1 // Copyright (C) 2016-2025 Free Software Foundation, Inc.
2 //
3 // This file is part of the GNU ISO C++ Library. This library is free
4 // software; you can redistribute it and/or modify it under the
5 // terms of the GNU General Public License as published by the
6 // Free Software Foundation; either version 3, or (at your option)
7 // any later version.
8
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13
14 // You should have received a copy of the GNU General Public License along
15 // with this library; see the file COPYING3. If not see
16 // <http://www.gnu.org/licenses/>.
17
18 // { dg-do compile { target c++11 } }
19
20 // libstdc++/69386
21
22 #include <bits/c++config.h>
23
24 extern "C"
25 {
26 #include <assert.h>
27 // See below for <complex.h>
28 #include <ctype.h>
29 #include <errno.h>
30 #ifdef _GLIBCXX_HAVE_FENV_H
31 #include <fenv.h>
32 #endif
33 #include <float.h>
34 #ifdef _GLIBCXX_HAVE_INTTYPES_H
35 #include <inttypes.h>
36 #endif
37 #include <iso646.h>
38 #include <limits.h>
39 #include <locale.h>
40 #include <math.h>
41 #include <setjmp.h>
42 #include <signal.h>
43 #if _GLIBCXX_HAVE_STDALIGN_H
44 #include <stdalign.h>
45 #endif
46 #include <stdarg.h>
47 #ifdef _GLIBCXX_HAVE_STDBOOL_H
48 #include <stdbool.h>
49 #endif
50 #include <stddef.h>
51 #ifdef _GLIBCXX_HAVE_STDINT_H
52 #include <stdint.h>
53 #endif
54 #include <stdio.h>
55 #include <stdlib.h>
56 #include <string.h>
57 #ifdef _GLIBCXX_HAVE_TGMATH_H
58 #include <tgmath.h>
59 #endif
60 #include <time.h>
61 #if __has_include(<uchar.h>)
62 #include <uchar.h>
63 #endif
64 #ifdef _GLIBCXX_HAVE_WCHAR_H
65 #include <wchar.h>
66 #endif
67 #ifdef _GLIBCXX_HAVE_WCTYPE_H
68 #include <wctype.h>
69 #endif
70
71 // Include this last, because it adds extern "C++" and so hides problems in
72 // other headers if included first (e.g. PR libstdc++/77814).
73 #ifdef _GLIBCXX_HAVE_COMPLEX_H
74 #include <complex.h>
75 #endif
76 }