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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [pr29609-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR debug/29609 */
2
/* Verify that breakpoint on the break is hit.
3
   This version of the test just checks that it can be compiled, linked
4
   and executed, further testing is done in corresponding gcc.dg/dwarf2/
5
   test and hopefully in gdb testsuite.  */
6
/* { dg-do run } */
7
/* { dg-options "-O0 -g -dA" } */
8
 
9
extern void abort (void);
10
 
11
int
12
foo (void)
13
{
14
  int a, i;
15
 
16
  for (i = 1; i <= 10; i++)
17
    {
18
      if (i < 3)
19
        a = 1;
20
      else
21
        break;
22
      a = 5;
23
    }
24
  return a;
25
}
26
 
27
int
28
main (void)
29
{
30
  if (foo () != 5)
31
    abort ();
32
  return 0;
33
}

powered by: WebSVN 2.1.0

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