aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/78_vla_label.c
blob: 0908e1bb7205bd05081a83a22970c60938ba520e (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>

/* This test segfaults as of April 27, 2015. */

void f(int argc)
{
  char test[argc];
  if(0)
  label:
    printf("boom!\n");
  if(argc-- == 0)
    return;
  goto label;
}

int main()
{
  f(2);

  return 0;
}