1// Copyright 2024 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. 4 5// Linkname "var" to reference newcoro is not allowed. 6 7package main 8 9import "unsafe" 10 11func main() { 12 call(&newcoro) 13} 14 15//go:linkname newcoro runtime.newcoro 16var newcoro unsafe.Pointer 17 18//go:noinline 19func call(*unsafe.Pointer) { 20 // not implemented 21} 22