cmake/Tests/CompileFeatures/genex_test.c

38 lines
703 B
C
Raw Normal View History

2015-04-27 22:25:09 +02:00
#ifndef EXPECT_C_STATIC_ASSERT
2016-07-09 11:21:54 +02:00
#error EXPECT_C_STATIC_ASSERT not defined
2015-04-27 22:25:09 +02:00
#endif
#ifndef EXPECT_C_FUNCTION_PROTOTYPES
2016-07-09 11:21:54 +02:00
#error EXPECT_C_FUNCTION_PROTOTYPES not defined
2015-04-27 22:25:09 +02:00
#endif
#ifndef EXPECT_C_RESTRICT
2016-07-09 11:21:54 +02:00
#error EXPECT_C_RESTRICT not defined
2015-04-27 22:25:09 +02:00
#endif
#if !EXPECT_C_STATIC_ASSERT
#if EXPECT_C_STATIC_ASSERT
#error "Expect c_static_assert feature"
#endif
#else
#if !EXPECT_C_STATIC_ASSERT
#error "Expect no c_static_assert feature"
#endif
#endif
#if !EXPECT_C_FUNCTION_PROTOTYPES
2016-07-09 11:21:54 +02:00
#error Expect c_function_prototypes support
2015-04-27 22:25:09 +02:00
#endif
#if !EXPECT_C_RESTRICT
2016-07-09 11:21:54 +02:00
#if EXPECT_C_RESTRICT
#error Expect c_restrict support
#endif
2015-04-27 22:25:09 +02:00
#else
2016-07-09 11:21:54 +02:00
#if !EXPECT_C_RESTRICT
#error Expect no c_restrict support
#endif
2015-04-27 22:25:09 +02:00
#endif
int main()
{
}