]>
Commit | Line | Data |
---|---|---|
7adcbafe | 1 | // Copyright (C) 2016-2022 Free Software Foundation, Inc. |
eac437bf JW |
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-options "-std=gnu++11" } | |
19 | // { dg-do compile } | |
20 | ||
21 | // libstdc++/69386 | |
22 | ||
ab56cbed JW |
23 | #include <bits/c++config.h> |
24 | ||
eac437bf JW |
25 | extern "C" |
26 | { | |
27 | #include <assert.h> | |
6a0d23af | 28 | // See below for <complex.h> |
eac437bf JW |
29 | #include <ctype.h> |
30 | #include <errno.h> | |
ab56cbed | 31 | #ifdef _GLIBCXX_HAVE_FENV_H |
eac437bf | 32 | #include <fenv.h> |
ab56cbed | 33 | #endif |
eac437bf | 34 | #include <float.h> |
ab56cbed | 35 | #ifdef _GLIBCXX_HAVE_INTTYPES_H |
eac437bf | 36 | #include <inttypes.h> |
ab56cbed | 37 | #endif |
eac437bf JW |
38 | #include <iso646.h> |
39 | #include <limits.h> | |
40 | #include <locale.h> | |
41 | #include <math.h> | |
42 | #include <setjmp.h> | |
43 | #include <signal.h> | |
6a0d23af JW |
44 | #if _GLIBCXX_HAVE_STDALIGN_H |
45 | #include <stdalign.h> | |
46 | #endif | |
eac437bf | 47 | #include <stdarg.h> |
ab56cbed | 48 | #ifdef _GLIBCXX_HAVE_STDBOOL_H |
eac437bf | 49 | #include <stdbool.h> |
ab56cbed | 50 | #endif |
eac437bf | 51 | #include <stddef.h> |
ab56cbed | 52 | #ifdef _GLIBCXX_HAVE_STDINT_H |
eac437bf | 53 | #include <stdint.h> |
ab56cbed | 54 | #endif |
eac437bf JW |
55 | #include <stdio.h> |
56 | #include <stdlib.h> | |
57 | #include <string.h> | |
ab56cbed | 58 | #ifdef _GLIBCXX_HAVE_TGMATH_H |
eac437bf | 59 | #include <tgmath.h> |
ab56cbed | 60 | #endif |
eac437bf | 61 | #include <time.h> |
ab56cbed | 62 | #if __has_include(<uchar.h>) |
eac437bf | 63 | #include <uchar.h> |
ab56cbed JW |
64 | #endif |
65 | #ifdef _GLIBCXX_HAVE_WCHAR_H | |
eac437bf | 66 | #include <wchar.h> |
ab56cbed JW |
67 | #endif |
68 | #ifdef _GLIBCXX_HAVE_WCTYPE_H | |
eac437bf | 69 | #include <wctype.h> |
ab56cbed | 70 | #endif |
6a0d23af JW |
71 | |
72 | // Include this last, because it adds extern "C++" and so hides problems in | |
73 | // other headers if included first (e.g. PR libstdc++/77814). | |
74 | #ifdef _GLIBCXX_HAVE_COMPLEX_H | |
75 | #include <complex.h> | |
76 | #endif | |
eac437bf | 77 | } |