Source file test/fixedbugs/gcc89321.go
1 // compile 2 3 // Copyright 2019 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 // https://gcc.gnu.org/PR89321 8 // gccgo compiler crash building map literals with a zero-sized value type. 9 10 package p 11 12 type M map[byte]struct{} 13 14 var ( 15 M1 = M{1: {}, 2: {}, 3: {}} 16 M2 = M{1: {}, 2: {}} 17 ) 18