gcc/testsuite/gcc.c-torture/compile/pr42998.c
raw| 1 | void foo(void *); |
| 2 | void bar(void *); |
| 3 | void ndisc_fill_addr_option(unsigned char *opt, int data_len, |
| 4 | unsigned short addr_type) |
| 5 | { |
| 6 | int pad; |
| 7 | if (addr_type == 32) |
| 8 | pad = 2; |
| 9 | else |
| 10 | pad = 0; |
| 11 | __builtin_memset(opt + 2, 0, pad); |
| 12 | opt += pad; |
| 13 | __builtin_constant_p(data_len) ? foo (opt+2) : bar (opt+2); |
| 14 | } |
| 15 |