summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/bcopy-1.c
blob: 5d3a882c8677f125eecf50c2e7f57c7d018a10f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR middle-end/31095, expand_builtin_memmove_args forgot to take into
   account that tree folding of builtins can add an extra NOP_EXPR.   */

struct timeval
{
  int tv_sec;
  int tv_usec;
};
void
capture_next_packet (void)
{
  struct timeval past, now, then;
  __builtin_bcopy (&then, &past, sizeof (then));
}