aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr19853.c
blob: f7fdf49bcfd1507f5a432ec09f7beece6873a38b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
struct test { int *x; } global_test;
int global_int;

int flag;

void test (char *dummy)
{
  static const struct test const_test = { &global_int };
  struct test local_test;

  int i;
  for (i = 0; i < 1; i++)
    *dummy = 0;
  if (flag)
    __builtin_memset (dummy, 0, 16);

  local_test = const_test;
  global_test = local_test;
}