- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for boolFieldAddr (0.13 sec)
-
src/go/types/check_test.go
} } func readCode(err Error) errors.Code { v := reflect.ValueOf(err) return errors.Code(v.FieldByName("go116code").Int()) } // boolFieldAddr(conf, name) returns the address of the boolean field conf.<name>. // For accessing unexported fields. func boolFieldAddr(conf *Config, name string) *bool { v := reflect.Indirect(reflect.ValueOf(conf)) return (*bool)(v.FieldByName(name).Addr().UnsafePointer()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 14.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check_test.go
for _, err := range errList { t.Errorf("%s:%d:%d: %s", filename, line, err.Pos.Col(), err.Msg) } } } } } // boolFieldAddr(conf, name) returns the address of the boolean field conf.<name>. // For accessing unexported fields. func boolFieldAddr(conf *Config, name string) *bool { v := reflect.Indirect(reflect.ValueOf(conf)) return (*bool)(v.FieldByName(name).Addr().UnsafePointer()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 13.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
//go:linkname _cgoCheckResult runtime.cgoCheckResult func _cgoCheckResult(interface{}) ` testFiles(t, []string{"p.go", "_cgo_gotypes.go"}, [][]byte{[]byte(src), []byte(cgoTypes)}, 0, false, func(cfg *Config) { *boolFieldAddr(cfg, "go115UsesCgo") = true }) } func TestIssue61931(t *testing.T) { const src = ` package p func A(func(any), ...any) {} func B[T any](T) {} func _() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/go/types/issues_test.go
//go:linkname _cgoCheckResult runtime.cgoCheckResult func _cgoCheckResult(interface{}) ` testFiles(t, []string{"p.go", "_cgo_gotypes.go"}, [][]byte{[]byte(src), []byte(cgoTypes)}, false, func(cfg *Config) { *boolFieldAddr(cfg, "go115UsesCgo") = true }) } func TestIssue61931(t *testing.T) { const src = ` package p func A(func(any), ...any) {} func B[T any](T) {} func _() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0)