aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr104263.c
blob: 79b548c629ceed52088e50dd3e999edeebc074fc (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
/* PR tree-optimization/104263 */
/* { dg-do compile } */
/* { dg-options "-O2 -fcompare-debug -fnon-call-exceptions -fno-inline-small-functions" } */

int n;

int
bar (void)
{
  int a;

  n = 0;
  a = 0;

  return n;
}

__attribute__ ((pure, returns_twice)) int
foo (void)
{
  n = bar () + 1;
  foo ();

  return 0;
}