mirror of
				https://github.com/golang/go.git
				synced 2025-11-04 02:30:57 +00:00 
			
		
		
		
	Use a separate symbol for reflect metadata for types with Noalg set. Fixes #17752. Change-Id: Icb6cade7e3004fc4108f67df61105dc4085cd7e2 Reviewed-on: https://go-review.googlesource.com/32679 Reviewed-by: David Crawshaw <crawshaw@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			377 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			377 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// run
 | 
						|
 | 
						|
// Copyright 2016 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 main
 | 
						|
 | 
						|
func f(m map[string]int) int {
 | 
						|
	return m["a"]
 | 
						|
}
 | 
						|
 | 
						|
func g(m map[[8]string]int) int {
 | 
						|
	return m[[8]string{"a", "a", "a", "a", "a", "a", "a", "a"}]
 | 
						|
}
 | 
						|
 | 
						|
func main() {
 | 
						|
	m := map[[8]string]int{}
 | 
						|
	g(m)
 | 
						|
}
 |