Text file misc/cgo/testcarchive/testdata/main8.c

     1  // Copyright 2021 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 preemption.
     6  
     7  #include <stdlib.h>
     8  
     9  #include "libgo8.h"
    10  
    11  int main() {
    12  	GoFunction8();
    13  
    14  	// That should have exited the program.
    15  	abort();
    16  }
    17  

View as plain text