1 // Copyright (C) 2016-2018 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-options "-std=gnu++11" } 19 // { dg-do compile } 20 21 // libstdc++/69386 22 23 #include <bits/c++config.h> 24 25 extern "C" 26 { 27 #include <assert.h> 28 // See below for <complex.h> 29 #include <ctype.h> 30 #include <errno.h> 31 #ifdef _GLIBCXX_HAVE_FENV_H 32 #include <fenv.h> 33 #endif 34 #include <float.h> 35 #ifdef _GLIBCXX_HAVE_INTTYPES_H 36 #include <inttypes.h> 37 #endif 38 #include <iso646.h> 39 #include <limits.h> 40 #include <locale.h> 41 #include <math.h> 42 #include <setjmp.h> 43 #include <signal.h> 44 #if _GLIBCXX_HAVE_STDALIGN_H 45 #include <stdalign.h> 46 #endif 47 #include <stdarg.h> 48 #ifdef _GLIBCXX_HAVE_STDBOOL_H 49 #include <stdbool.h> 50 #endif 51 #include <stddef.h> 52 #ifdef _GLIBCXX_HAVE_STDINT_H 53 #include <stdint.h> 54 #endif 55 #include <stdio.h> 56 #include <stdlib.h> 57 #include <string.h> 58 #ifdef _GLIBCXX_HAVE_TGMATH_H 59 #include <tgmath.h> 60 #endif 61 #include <time.h> 62 #if __has_include(<uchar.h>) 63 #include <uchar.h> 64 #endif 65 #ifdef _GLIBCXX_HAVE_WCHAR_H 66 #include <wchar.h> 67 #endif 68 #ifdef _GLIBCXX_HAVE_WCTYPE_H 69 #include <wctype.h> 70 #endif 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 77 } 78