summaryrefslogtreecommitdiff
path: root/Modules/CMakeCCompilerABI.c
blob: f73e7fcc34ffd122934f7c362104d08973aba712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifdef __cplusplus
# error "A C++ compiler has been selected for C."
#endif

#ifdef __CLASSIC_C__
# define const
#endif

/*--------------------------------------------------------------------------*/

#include "CMakeCompilerABI.h"

/*--------------------------------------------------------------------------*/

/* Make sure the information strings are referenced.  */
#define REQUIRE(x) (&x[0] != &require)

int main()
{
  const char require = 0;
  return
    (
      REQUIRE(info_sizeof_dptr)
#if defined(ABI_ID)
      && REQUIRE(info_abi)
#endif
      );
}