1 // Copyright 2023 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.
7 // #cgo nocallback annotations for a C function means it should not callback to Go.
8 // But it do callback to go in this test, Go should crash here.
11 #cgo nocallback runCShouldNotCallback
13 extern void runCShouldNotCallback();
22 register("CgoNoCallback", CgoNoCallback)
29 func CgoNoCallback() {
30 C.runCShouldNotCallback()