34 lines
761 B
C
Raw Normal View History

2016-03-13 13:35:51 +01:00
/*
Copyright Kitware, Inc.
Distributed under the OSI-approved BSD 3-Clause License.
See accompanying file Copyright.txt for details.
*/
2012-02-18 12:40:36 +02:00
#ifdef __cplusplus
extern "C" {
#endif
2016-03-13 13:35:51 +01:00
extern int test_abi_C(void);
extern int test_int_C(void);
extern int test_abi_CXX(void);
extern int test_int_CXX(void);
2012-02-18 12:40:36 +02:00
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
2016-03-13 13:35:51 +01:00
result = test_abi_C() && result;
result = test_int_C() && result;
2012-02-18 12:40:36 +02:00
result = test_include_C() && result;
#endif
#ifdef KWIML_LANGUAGE_CXX
2016-03-13 13:35:51 +01:00
result = test_abi_CXX() && result;
result = test_int_CXX() && result;
2012-02-18 12:40:36 +02:00
result = test_include_CXX() && result;
#endif
return result? 0 : 1;
}