diff options
author | Filippo Valsorda <filippo@golang.org> | 2021-07-14 05:35:26 -0400 |
---|---|---|
committer | Filippo Valsorda <filippo@golang.org> | 2021-07-14 05:35:26 -0400 |
commit | ddf078e08dc61f38e26f9969dd2a2151a8c73904 (patch) | |
tree | 08c9f34f56b0a66a21f94f4ae75dc00af9f59375 /test/fixedbugs/issue46653.dir/bad/bad.go | |
parent | 9647f89f2ac2a64acb502c594fc747f206842a86 (diff) | |
parent | c6d89dbf9954b101589e2db8e170b84167782109 (diff) | |
download | go-ddf078e08dc61f38e26f9969dd2a2151a8c73904.tar.gz go-ddf078e08dc61f38e26f9969dd2a2151a8c73904.zip |
[dev.boringcrypto.go1.15] all: merge go1.15.14 into dev.boringcrypto.go1.15
Change-Id: Ia5ae002730c2c0e6bea5e9a10bf335af3ef23e23
Diffstat (limited to 'test/fixedbugs/issue46653.dir/bad/bad.go')
-rw-r--r-- | test/fixedbugs/issue46653.dir/bad/bad.go | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/test/fixedbugs/issue46653.dir/bad/bad.go b/test/fixedbugs/issue46653.dir/bad/bad.go new file mode 100644 index 0000000000..c1611b8347 --- /dev/null +++ b/test/fixedbugs/issue46653.dir/bad/bad.go @@ -0,0 +1,64 @@ +// Copyright 2021 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 a + +func Bad() { + m := make(map[int64]A) + a := m[0] + if len(a.B.C1.D2.E2.F1) != 0 || + len(a.B.C1.D2.E2.F2) != 0 || + len(a.B.C1.D2.E2.F3) != 0 || + len(a.B.C1.D2.E2.F4) != 0 || + len(a.B.C1.D2.E2.F5) != 0 || + len(a.B.C1.D2.E2.F6) != 0 || + len(a.B.C1.D2.E2.F7) != 0 || + len(a.B.C1.D2.E2.F8) != 0 || + len(a.B.C1.D2.E2.F9) != 0 || + len(a.B.C1.D2.E2.F10) != 0 || + len(a.B.C1.D2.E2.F11) != 0 || + len(a.B.C1.D2.E2.F16) != 0 { + panic("bad") + } +} + +type A struct { + B +} + +type B struct { + C1 C + C2 C +} + +type C struct { + D1 D + D2 D +} + +type D struct { + E1 E + E2 E + E3 E + E4 E +} + +type E struct { + F1 string + F2 string + F3 string + F4 string + F5 string + F6 string + F7 string + F8 string + F9 string + F10 string + F11 string + F12 string + F13 string + F14 string + F15 string + F16 string +} |