compiler: header for compiler-specific wrappers.
[ccan] / ccan / compiler / test / run-is_compile_constant.c
1 #include <ccan/compiler/compiler.h>
2 #include <ccan/tap/tap.h>
3
4 int main(int argc, char *argv[])
5 {
6         plan_tests(2);
7
8         ok1(!IS_COMPILE_CONSTANT(argc));
9 #ifdef HAVE_BUILTIN_CONSTANT_P
10         ok1(IS_COMPILE_CONSTANT(7));
11 #else
12         pass("If !HAVE_BUILTIN_CONSTANT_P, IS_COMPILE_CONSTANT always false");
13 #endif
14         return exit_status();
15 }