]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/17_intro/headers/c++2011/linkage.cc
Ensure C++ language linkage in cmath and cstdlib
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 17_intro / headers / c++2011 / linkage.cc
CommitLineData
eac437bf
JW
1// Copyright (C) 2016 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
23extern "C"
24{
25#include <assert.h>
26#include <complex.h>
27#include <ctype.h>
28#include <errno.h>
29#include <fenv.h>
30#include <float.h>
31#include <inttypes.h>
32#include <iso646.h>
33#include <limits.h>
34#include <locale.h>
35#include <math.h>
36#include <setjmp.h>
37#include <signal.h>
38#include <stdarg.h>
39#include <stdbool.h>
40#include <stddef.h>
41#include <stdint.h>
42#include <stdio.h>
43#include <stdlib.h>
44#include <string.h>
45#include <tgmath.h>
46#include <time.h>
47#include <uchar.h>
48#include <wchar.h>
49#include <wctype.h>
50}