]> git.ozlabs.org Git - ccan/blob - ccan/compiler/test/run-is_compile_constant.c
base64: fix for unsigned chars (e.g. ARM).
[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         (void)argc;
7         (void)argv;
8         plan_tests(2);
9
10         ok1(!IS_COMPILE_CONSTANT(argc));
11 #if HAVE_BUILTIN_CONSTANT_P
12         ok1(IS_COMPILE_CONSTANT(7));
13 #else
14         pass("If !HAVE_BUILTIN_CONSTANT_P, IS_COMPILE_CONSTANT always false");
15 #endif
16         return exit_status();
17 }