summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ipa/ipa-pta-9.c
blob: 1a98da3978ec145d8b83b9df9ac73f5e20b8d3f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do run } */
/* { dg-options "-O2 -fipa-pta" } */

static void __attribute__((noinline,noclone))
foo (int *p, int *q)
{
  __builtin_memcpy (p, q, sizeof (int));
}
extern void abort (void);
int main()
{
  int i = 0, j = 1;
  foo (&i, &j);
  if (i != 1)
    abort ();
  return 0;
}