github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/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