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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [dwarf2/] [pr29609-1.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR debug/29609 */
2
/* Verify that breakpoint on the break is hit.  */
3
/* { dg-do compile } */
4
/* { dg-options "-O0 -gdwarf-2 -dA" } */
5
 
6
void abort (void);
7
 
8
int
9
foo (void)
10
{
11
  int a, i;
12
 
13
  for (i = 1; i <= 10; i++)
14
    {
15
      if (i < 3)
16
        a = 1;
17
      else
18
        break;
19
      a = 5;
20
    }
21
  return a;
22
}
23
 
24
int
25
main (void)
26
{
27
  if (foo () != 5)
28
    abort ();
29
  return 0;
30
}
31
 
32
/* { dg-final { scan-assembler "pr29609-1.c:18" } } */

powered by: WebSVN 2.1.0

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