File tree 3 files changed +46
-0
lines changed
3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2018 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
+ package a
6
+
7
+ type internal struct {
8
+ f1 string
9
+ f2 float64
10
+ }
11
+
12
+ type S struct {
13
+ F struct {
14
+ I internal
15
+ }
16
+ }
Original file line number Diff line number Diff line change
1
+ // Copyright 2018 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
+ package main
6
+
7
+ import (
8
+ "fmt"
9
+
10
+ "./a"
11
+ )
12
+
13
+ var v = a.S {}
14
+
15
+ func main () {
16
+ want := "{{ 0}}"
17
+ if got := fmt .Sprint (v .F ); got != want {
18
+ panic (got )
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ // rundir
2
+
3
+ // Copyright 2018 The Go Authors. All rights reserved.
4
+ // Use of this source code is governed by a BSD-style
5
+ // license that can be found in the LICENSE file.
6
+
7
+ // Gccgo caused an undefined symbol reference building hash functions
8
+ // for an imported struct with unexported fields.
9
+
10
+ package ignored
You can’t perform that action at this time.
0 commit comments