diff options
Diffstat (limited to 'test/codegen')
| -rw-r--r-- | test/codegen/reflect_type.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/codegen/reflect_type.go b/test/codegen/reflect_type.go new file mode 100644 index 0000000000..b92a9567f1 --- /dev/null +++ b/test/codegen/reflect_type.go @@ -0,0 +1,21 @@ +// asmcheck + +// Copyright 2025 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 codegen + +import "reflect" + +func intPtrTypeSize() uintptr { + // amd64:"MOVL\t[$]8,",-"CALL" + // arm64:"MOVD\t[$]8,",-"CALL" + return reflect.TypeFor[*int]().Size() +} + +func intPtrTypeKind() reflect.Kind { + // amd64:"MOVL\t[$]22,",-"CALL" + // arm64:"MOVD\t[$]22,",-"CALL" + return reflect.TypeFor[*int]().Kind() +} |
