view gcc/testsuite/gcc.c-torture/compile/bcopy-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* 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));
}