summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/label.c
blob: f9cd8c39a94c8a3a7c37f04c6fe72916ed8d551b (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;
}