summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr44050.c
blob: 931eff6ff2c2a9ad3d848d52f27e6efa7fe647ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do run } */
/* { dg-options "-fno-tree-pta" } */

static void __attribute__((noinline))
foo (int *i, int n)
{
  *i = n;
}

int
main (void)
{
  int i = 0;
  foo (&i, 1);

  if (i != 1)
    __builtin_abort ();

  return 0;
}