aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/label.c
blob: c15e3bf6c847cbb863b304e818b9d0a234d92301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>

int
main (int argc, char **argv)
{
  int i = 0;
  goto there;

here:
  printf("not here\n");
  i = 1;
  
there:
  printf("but here\n");
  if (i == 0)
    goto here;

done:
  return 0;
}