OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [pr36690-3.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR debug/36690 */
2
/* { dg-do run } */
3
/* { dg-options "-O0 -g -dA" } */
4
 
5
int cnt;
6
 
7
void
8
bar (int i)
9
{
10
  cnt += i;
11
}
12
 
13
void
14
foo (int i, int j)
15
{
16
  if (j)
17
    {
18
      bar (i + 1);
19
      goto f1;
20
    }
21
  bar (i + 2);
22
  goto f2;
23
f1:
24
  if (i > 10)
25
    goto f3;
26
f2:
27
  if (i > 40)
28
    goto f4;
29
  else
30
    goto f5;
31
f3:
32
  bar (i);
33
f4:
34
  bar (i);
35
f5:
36
  bar (i);
37
}
38
 
39
int
40
main (void)
41
{
42
  foo (0, 1);
43
  foo (11, 1);
44
  foo (21, 0);
45
  foo (41, 0);
46
  return 0;
47
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.