run-is_compile_constant.c 317 B

123456789101112131415
  1. #include <ccan/compiler/compiler.h>
  2. #include <ccan/tap/tap.h>
  3. int main(int argc, char *argv[])
  4. {
  5. plan_tests(2);
  6. ok1(!IS_COMPILE_CONSTANT(argc));
  7. #if HAVE_BUILTIN_CONSTANT_P
  8. ok1(IS_COMPILE_CONSTANT(7));
  9. #else
  10. pass("If !HAVE_BUILTIN_CONSTANT_P, IS_COMPILE_CONSTANT always false");
  11. #endif
  12. return exit_status();
  13. }