1 /* 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
foo(void)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
main(void)28 main (void)
29 {
30 if (foo () != 5)
31 abort ();
32 return 0;
33 }
34