xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/label.c (revision 901e7e84758515fbf39dfc064cb0b45ab146d8b0)
1 #include <stdio.h>
2 
3 int
4 main (int argc, char **argv)
5 {
6   int i = 0;
7   goto there;
8 
9 here:
10   printf("not here\n");
11   i = 1;
12 
13 there:
14   printf("but here\n");
15   if (i == 0)
16     goto here;
17 
18 done:
19   return 0;
20 }
21 
22