aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/export_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/export_test.go')
-rw-r--r--src/runtime/export_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go
index 5641005401..a4a1fa580d 100644
--- a/src/runtime/export_test.go
+++ b/src/runtime/export_test.go
@@ -1932,3 +1932,11 @@ func SetPinnerLeakPanic(f func()) {
func GetPinnerLeakPanic() func() {
return pinnerLeakPanic
}
+
+var testUintptr uintptr
+
+func MyGenericFunc[T any]() {
+ systemstack(func() {
+ testUintptr = 4
+ })
+}