URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [go.test/] [test/] [fixedbugs/] [bug336.go] - Rev 700
Compare with Previous | Blame | View Log
// $G $D/$F.go && $L $F.$A && ./$A.out// Copyright 2011 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 maintype T1 struct {Next *T2}type T2 T1type T3 struct {Next *T4}type T4 T5type T5 T6type T6 T7type T7 T8type T8 T9type T9 T3type T10 struct {x struct {y ***struct {z *struct {Next *T11}}}}type T11 T10type T12 struct {F1 *T15F2 *T13F3 *T16}type T13 T14type T14 T15type T15 T16type T16 T17type T17 T12// issue 1672type T18 *[10]T19type T19 T18func main() {_ = &T1{&T2{}}_ = &T2{&T2{}}_ = &T3{&T4{}}_ = &T4{&T4{}}_ = &T5{&T4{}}_ = &T6{&T4{}}_ = &T7{&T4{}}_ = &T8{&T4{}}_ = &T9{&T4{}}_ = &T12{&T15{}, &T13{}, &T16{}}var (tn struct{ Next *T11 }tz struct{ z *struct{ Next *T11 } }tpz *struct{ z *struct{ Next *T11 } }tppz **struct{ z *struct{ Next *T11 } }tpppz ***struct{ z *struct{ Next *T11 } }ty struct {y ***struct{ z *struct{ Next *T11 } }})tn.Next = &T11{}tz.z = &tntpz = &tztppz = &tpztpppz = &tppzty.y = tpppz_ = &T10{ty}t19s := &[10]T19{}_ = T18(t19s)}
