summaryrefslogtreecommitdiff
path: root/misc/cgo/testcdefs/test.bash
blob: 01621a49ac8dc1d1a0c40c0e6263d2509d30428e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright 2013 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

# Just add issue file prefixes to this list if more issues come up
FILE_PREFIXES="cdefstest"

for FP in $FILE_PREFIXES
do 
  go tool cgo -cdefs ${FP}.go > ${FP}.h
done

go build . && ./testcdefs
EXIT=$?
rm -rf _obj testcdefs *.h
exit $EXIT