xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/label.c (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
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