genex_test.c 831 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef EXPECT_C_STATIC_ASSERT
  2. #error EXPECT_C_STATIC_ASSERT not defined
  3. #endif
  4. #ifndef EXPECT_C_FUNCTION_PROTOTYPES
  5. #error EXPECT_C_FUNCTION_PROTOTYPES not defined
  6. #endif
  7. #ifndef EXPECT_C_RESTRICT
  8. #error EXPECT_C_RESTRICT not defined
  9. #endif
  10. #if !HAVE_C_STATIC_ASSERT
  11. #if EXPECT_C_STATIC_ASSERT
  12. #error "Expect c_static_assert feature"
  13. #endif
  14. #else
  15. #if !EXPECT_C_STATIC_ASSERT
  16. #error "Expect no c_static_assert feature"
  17. #endif
  18. #endif
  19. #if !HAVE_C_FUNCTION_PROTOTYPES
  20. #if EXPECT_C_FUNCTION_PROTOTYPES
  21. #error Expect c_function_prototypes support
  22. #endif
  23. #else
  24. #if !EXPECT_C_FUNCTION_PROTOTYPES
  25. #error Expect no c_function_prototypes support
  26. #endif
  27. #endif
  28. #if !HAVE_C_RESTRICT
  29. #if EXPECT_C_RESTRICT
  30. #error Expect c_restrict support
  31. #endif
  32. #else
  33. #if !EXPECT_C_RESTRICT
  34. #error Expect no c_restrict support
  35. #endif
  36. #endif
  37. int main()
  38. {
  39. }