summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-empic/relax1.c
blob: 20ec39efc9c10be6ac2d1984d86749617ca1d081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* First source file in relaxation test.  */

extern int bar ();
static int foo2 ();

int foo (int i)
{
  switch (i)
    {
    case 0: bar (0); break;
    case 1: bar (1); break;
    case 2: bar (2); break;
    case 3: bar (3); break;
    case 4: bar (foo2); break;
    case 5: bar (bar); break;
    }
  while (1)
    if (i)
      return bar ();
}

static int foo2 () { }