sandbox/bugs/break.c

qcc -autolink -O2 -DMTRACE=3 -g -Wall -pipe -D_FORTIFY_SOURCE=2 -o break/break break.c -lm
s
make: * [break.tst] Error 1

Fields are not freed when using ‘break’

int main() {
  init_grid (1);
  
  while (true) {
    scalar s[];
    break;
  }

  for (scalar s in all) {
    fprintf (stderr, "%s\n", s.name);
    return 1; // error
  }
}