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

Unified Diff: misc/cgo/testgodefs/main.go

Issue 106260044: code review 106260044: cmd/cgo: for -godefs, promote first field of anonymous union (Closed)
Patch Set: diff -r dff49040426d https://code.google.com/p/go Created 9 years, 7 months ago
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « misc/cgo/testgodefs/anonunion.go ('k') | misc/cgo/testgodefs/test.bash » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: misc/cgo/testgodefs/main.go
===================================================================
new file mode 100644
--- /dev/null
+++ b/misc/cgo/testgodefs/main.go
@@ -0,0 +1,12 @@
+// Copyright 2014 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.
+
+package main
+
+// Test that the struct field in anonunion.go was promoted.
+var v1 T
+var v2 = v1.L
+
+func main() {
+}
« no previous file with comments | « misc/cgo/testgodefs/anonunion.go ('k') | misc/cgo/testgodefs/test.bash » ('j') | no next file with comments »

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