We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a82ef commit 51be206Copy full SHA for 51be206
src/runtime/testdata/testprogcgo/panic.c
@@ -0,0 +1,9 @@
1
+// Copyright 2021 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
+extern void panic_callback();
6
7
+void call_callback(void) {
8
+ panic_callback();
9
+}
src/runtime/testdata/testprogcgo/panic.go
@@ -1,16 +1,10 @@
package main
-import "C"
-
// This program will crash.
// We want to test unwinding from a cgo callback.
/*
-void panic_callback();
10
11
-static void call_callback(void) {
12
- panic_callback();
13
-}
+void call_callback(void);
14
*/
15
import "C"
16
0 commit comments