OSDN Git Service

PR debug/41893
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / debug / pr36690-1.c
1 /* PR debug/36690 */
2 /* Verify that break func 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 int i;
10
11 void
12 func (void)
13 {
14   while (i == 1)
15     i = 0;
16 }
17
18 int
19 main (void)
20 {
21   func ();
22   return 0;
23 }