Files
CMake/test/test.c
T
KWIML Upstream 3fdbb0a806 KWIML 2015-12-09 (43f9f8d0)
Code extracted from:

    https://github.com/Kitware/KWIML.git

at commit 43f9f8d0b0c8ee62aa056a2020981a6d98a40dd4 (master).
2015-12-17 14:56:38 -05:00

34 lines
761 B
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;
}