summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr37382.c
blob: 47525bcf9561040926a596f739d4a2766755efd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR target/37382 */

void baz (char *);
int c;

void
bar (void)
{
  char a[2];
  int *ip = &c;
  char *p = a, *q = (char *) &ip;
  const char *r = q + 2;
  for (; q != r; p++, q++)
    *p = *q;
  baz (a);
}