Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(52)

Side by Side Diff: misc/cgo/testgodefs/test.bash

Issue 122900043: cmd/cgo: for -godefs, handle embedded anonymous structs
Patch Set: diff -r dad4822bccff https://code.google.com/p/go Created 9 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « misc/cgo/testgodefs/main.go ('k') | src/cmd/cgo/gcc.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Go Authors. All rights reserved. 1 # Copyright 2014 The Go Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style 2 # Use of this source code is governed by a BSD-style
3 # license that can be found in the LICENSE file. 3 # license that can be found in the LICENSE file.
4 4
5 # We are testing cgo -godefs, which translates Go files that use 5 # We are testing cgo -godefs, which translates Go files that use
6 # import "C" into Go files with Go definitions of types defined in the 6 # import "C" into Go files with Go definitions of types defined in the
7 # import "C" block. Add more tests here. 7 # import "C" block. Add more tests here.
8 FILE_PREFIXES="anonunion issue8478" 8 FILE_PREFIXES="anonunion issue5253 issue8478"
9 9
10 RM= 10 RM=
11 for FP in $FILE_PREFIXES 11 for FP in $FILE_PREFIXES
12 do 12 do
13 go tool cgo -godefs ${FP}.go > ${FP}_defs.go 13 go tool cgo -godefs ${FP}.go > ${FP}_defs.go
14 RM="${RM} ${FP}_defs.go" 14 RM="${RM} ${FP}_defs.go"
15 done 15 done
16 16
17 go build . && ./testgodefs 17 go build . && ./testgodefs
18 EXIT=$? 18 EXIT=$?
19 rm -rf _obj testgodefs ${RM} 19 rm -rf _obj testgodefs ${RM}
20 exit $EXIT 20 exit $EXIT
OLDNEW
« no previous file with comments | « misc/cgo/testgodefs/main.go ('k') | src/cmd/cgo/gcc.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b