gcc/testsuite/gcc.c-torture/compile/bcopy-1.c
raw| 1 | /* PR middle-end/31095, expand_builtin_memmove_args forgot to take into |
| 2 | account that tree folding of builtins can add an extra NOP_EXPR. */ |
| 3 | |
| 4 | struct timeval |
| 5 | { |
| 6 | int tv_sec; |
| 7 | int tv_usec; |
| 8 | }; |
| 9 | void |
| 10 | capture_next_packet (void) |
| 11 | { |
| 12 | struct timeval past, now, then; |
| 13 | __builtin_bcopy (&then, &past, sizeof (then)); |
| 14 | } |