| 1 |
// { dg-do compile { target riscv64*-*-* } } |
| 2 |
// { dg-options "-O2 -march=rv64gcv -mabi=lp64d" } |
| 3 |
|
| 4 |
// Reduced from libgo build (multi-file reduction, merged mnaully |
| 5 |
// and hand reduced again). |
| 6 |
|
| 7 |
package ast |
| 8 |
import ( |
| 9 |
"go/token" |
| 10 |
"go/scanner" |
| 11 |
"reflect" |
| 12 |
) |
| 13 |
type v struct {} |
| 14 |
type w func( string, reflect.Value) bool |
| 15 |
func x( string, reflect.Value) bool |
| 16 |
type r struct { |
| 17 |
scanner.ErrorList |
| 18 |
} |
| 19 |
type ab interface {} |
| 20 |
type ae interface {} |
| 21 |
type af interface {} |
| 22 |
type ag struct {} |
| 23 |
func (ag) Pos() token.Pos |
| 24 |
func (ag) ah() token.Pos |
| 25 |
type c struct { |
| 26 |
aj ae } |
| 27 |
type ak struct { |
| 28 |
al []c } |
| 29 |
type ( |
| 30 |
am struct { |
| 31 |
an string } |
| 32 |
bs struct { |
| 33 |
Value string |
| 34 |
} |
| 35 |
) |
| 36 |
func ao(string) *am |
| 37 |
type ( |
| 38 |
ap interface {} |
| 39 |
aq struct { |
| 40 |
ar bs } |
| 41 |
as struct { |
| 42 |
bt ak |
| 43 |
an am } |
| 44 |
) |
| 45 |
type File struct { |
| 46 |
*ag |
| 47 |
token.Pos |
| 48 |
*am |
| 49 |
at []af |
| 50 |
*v |
| 51 |
au []*aq |
| 52 |
av *am |
| 53 |
aw []*ag } |
| 54 |
type ax struct { |
| 55 |
an string |
| 56 |
*v |
| 57 |
ay map[string]File } |
| 58 |
func a(az *token.FileSet, b token.Pos) int |
| 59 |
type k struct { |
| 60 |
l token.Pos |
| 61 |
ah token.Pos |
| 62 |
} |
| 63 |
type m struct { |
| 64 |
bb bool |
| 65 |
bc *ag |
| 66 |
} |
| 67 |
|
| 68 |
type bi uint |
| 69 |
func bj(a *as) string { |
| 70 |
if b := a.bt; len(b.al) == 1 { |
| 71 |
c := b.al[0].aj |
| 72 |
if e := c; e != nil {} |
| 73 |
} |
| 74 |
return a.an.an |
| 75 |
} |
| 76 |
func MergePackageFiles(f ax, g bi) *File { |
| 77 |
h := 0 |
| 78 |
bk := 0 |
| 79 |
k := 0 |
| 80 |
bl := make([]string, len(f.ay)) |
| 81 |
i := 0 |
| 82 |
for bm, a := range f.ay { |
| 83 |
bl[i] = bm |
| 84 |
k += len(a.at) |
| 85 |
} |
| 86 |
var bn *ag |
| 87 |
var l token.Pos |
| 88 |
if h > 0 {} |
| 89 |
var bo []af |
| 90 |
bu := make(map[string]int) |
| 91 |
m := 0 |
| 92 |
for _, bm := range bl { |
| 93 |
a := f.ay[bm] |
| 94 |
for _, d := range a.at { |
| 95 |
if g!= 0 { |
| 96 |
if a, p := d.(*as); p { |
| 97 |
n := bj(a) |
| 98 |
if j, bp := bu[n]; bp { |
| 99 |
if bo != nil && bo[j]== nil {} |
| 100 |
} |
| 101 |
} |
| 102 |
} |
| 103 |
} |
| 104 |
} |
| 105 |
if m > 0 {} |
| 106 |
var bq []*aq |
| 107 |
q := make(map[string]bool) |
| 108 |
for _, bm := range bl { |
| 109 |
a := f.ay[bm] |
| 110 |
for _, br := range a.au { |
| 111 |
if o := br.ar.Value; q[o] {} |
| 112 |
} |
| 113 |
} |
| 114 |
var bh = make([]*ag, bk) |
| 115 |
for _, bm := range bl { |
| 116 |
a := f.ay[bm] |
| 117 |
copy(bh, a.aw) |
| 118 |
} |
| 119 |
return &File{bn, l, ao(f.an), bo, f.v, bq, nil, bh} |
| 120 |
} |