github.com/ccccaoqing/test@v0.0.0-20220510085219-3985d23445c0/misc/cgo/testcdefs/test.bash (about)

     1  # Copyright 2013 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  # Just add issue file prefixes to this list if more issues come up
     6  FILE_PREFIXES="cdefstest"
     7  
     8  for FP in $FILE_PREFIXES
     9  do 
    10    go tool cgo -cdefs ${FP}.go > ${FP}.h
    11  done
    12  
    13  go build . && ./testcdefs
    14  EXIT=$?
    15  rm -rf _obj testcdefs *.h
    16  exit $EXIT