summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr42893.c
blob: b3fbd76540379123a25e08e164718cdb72b3d739 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-optimized" } */

struct frame_info;
void tui_registers_changed_hook (void);
extern struct frame_info *deprecated_selected_frame;
int tui_refreshing_registers = 0;
void
tui_registers_changed_hook (void)
{
  struct frame_info *fi;
  fi = deprecated_selected_frame;
  if (fi)

    {
      if (tui_refreshing_registers == 0)

	{
	  tui_refreshing_registers = 1;
	  tui_refreshing_registers = 0;
	}
    }
  return;
}

/* No references to tui_refreshing_registers should remain.  */
/* { dg-final { scan-tree-dump-not "tui_refreshing_registers" "optimized"} } */

/* { dg-final { cleanup-tree-dump "optimized" } } */