summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr33645-2.c
blob: 3c4bcb060e562dc7259358195fc71efd0dffe31a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR tree-optimization/33645 */
/* { dg-do compile } */
/* { dg-options "-O2 -funit-at-a-time" } */

__attribute__((noinline)) int
bar (int *x)
{
  return *x++;
}

int
main ()
{
  static int var1_s;
  static int *var1_t = &var1_s;

  return bar (var1_t) != 0;
}

/* { dg-final { scan-assembler-not "var1_t" } } */