aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr94130.c
blob: 044e578d373938e717127df30ee100b6fbc156ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR tree-optimization/94130 */

int
main ()
{
  int a[8];
  char *b = __builtin_memset (a, 0, sizeof (a));
  a[0] = 1;
  a[1] = 2;
  a[2] = 3;
  if (b != (char *) a)
    __builtin_abort ();
  else
    asm volatile ("" : : "g" (a) : "memory");
  return 0;
}