swh:1:snp:3cba5856b0ddc3feab6c3c2d096d614b02c883ec
Raw File
Tip revision: d203761520f5dd21a9cc4de5c4ca0d0e4e188e34 authored by Brad King on 18 February 2016, 15:41:26 UTC
CMake 3.5.0-rc3
Tip revision: d203761
test.c
/*
  Copyright Kitware, Inc.
  Distributed under the OSI-approved BSD 3-Clause License.
  See accompanying file Copyright.txt for details.
*/
#ifdef __cplusplus
extern "C" {
#endif
extern int test_abi_C(void);
extern int test_int_C(void);
extern int test_abi_CXX(void);
extern int test_int_CXX(void);
extern int test_include_C(void);
extern int test_include_CXX(void);
#ifdef __cplusplus
} // extern "C"
#endif

int main(void)
{
  int result = 1;
#ifdef KWIML_LANGUAGE_C
  result = test_abi_C() && result;
  result = test_int_C() && result;
  result = test_include_C() && result;
#endif
#ifdef KWIML_LANGUAGE_CXX
  result = test_abi_CXX() && result;
  result = test_int_CXX() && result;
  result = test_include_CXX() && result;
#endif
  return result? 0 : 1;
}
back to top