summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20020926-1.c
blob: 260e844549a8deca9b5bf51b4942921d4da65de3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR c/7160 */
/* Verify that the register-to-stack converter properly handles
   branches without return value containing function calls.  */
   
extern int gi;

extern int foo1(int, int);
extern void foo2(int, int);
extern float foo3(int);

float bar(int i1, int i2)
{
  int i3;
    
  if (i2) {
    i3 = foo1(i1, gi);
    foo2(i1, i3);
  }
  else
    return foo3(i2);
}