aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gcc.c-torture/execute/pr60072.c
blob: 566874d635e660f6ef0b0a541c4a9bdd880e324c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR target/60072 */

int c = 1;

__attribute__ ((optimize (1)))
static int *foo (int *p)
{
  return p;
}

int
main ()
{
  *foo (&c) = 2;
  return c - 2;
}