2015-02-03 23:47:45 +03:00
|
|
|
|
|
|
|
#include "test_compiler_detection.h"
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
#if !defined(TEST_COMPILER_C_FUNCTION_PROTOTYPES) || \
|
|
|
|
!TEST_COMPILER_C_FUNCTION_PROTOTYPES
|
|
|
|
#error Expected TEST_COMPILER_C_FUNCTION_PROTOTYPES
|
2015-02-03 23:47:45 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !EXPECTED_COMPILER_C_FUNCTION_PROTOTYPES
|
2016-05-16 17:34:04 +03:00
|
|
|
#error Expected EXPECTED_COMPILER_C_FUNCTION_PROTOTYPES
|
2015-02-03 23:47:45 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(TEST_COMPILER_C_RESTRICT) || !TEST_COMPILER_C_RESTRICT
|
2016-05-16 17:34:04 +03:00
|
|
|
#if EXPECTED_COMPILER_C_RESTRICT
|
|
|
|
#error Expected TEST_COMPILER_C_RESTRICT
|
|
|
|
#endif
|
2015-02-03 23:47:45 +03:00
|
|
|
#else
|
2016-05-16 17:34:04 +03:00
|
|
|
#if !EXPECTED_COMPILER_C_RESTRICT
|
|
|
|
#error Expect no TEST_COMPILER_C_RESTRICT
|
|
|
|
#endif
|
2015-02-03 23:47:45 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef TEST_COMPILER_CXX_STATIC_ASSERT
|
|
|
|
#error Expect no CXX features defined
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|