is_const(long size)1static inline int is_const(long size) 2 { 3 return __builtin_constant_p(size) ? size : 0; 4 } 5 foo(void)6int foo(void) 7 { 8 return is_const(42); 9 } 10 11 /* 12 * check-name: builtin_constant_inline0 13 * check-command: test-linearize -Wno-decl $file 14 * 15 * check-output-start 16 foo: 17 .L0: 18 <entry-point> 19 # call %r1 <- is_const, $42 20 ret.32 $42 21 22 23 * check-output-end 24 */ 25