Text file src/cmd/cgo/internal/testcarchive/testdata/main7.c

     1  // Copyright 2019 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Test that lots of calls don't deadlock.
     6  
     7  #include <stdio.h>
     8  
     9  #include "libgo7.h"
    10  
    11  int main() {
    12  	int i;
    13  
    14  	for (i = 0; i < 100000; i++) {
    15  		GoFunction7();
    16  	}
    17  	return 0;
    18  }
    19  

View as plain text