Rebase.
[official-gcc.git] / libgo / go / reflect / export_test.go
blob0778ad37f5c0526ba4026df49901d167bd0c5a2f
1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 package reflect
7 // MakeRO returns a copy of v with the read-only flag set.
8 func MakeRO(v Value) Value {
9 v.flag |= flagRO
10 return v
13 // IsRO reports whether v's read-only flag is set.
14 func IsRO(v Value) bool {
15 return v.flag&flagRO != 0
18 var ArrayOf = arrayOf
19 var CallGC = &callGC