aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/test/callback_c_gccgo.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/test/callback_c_gccgo.c')
-rw-r--r--misc/cgo/test/callback_c_gccgo.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/misc/cgo/test/callback_c_gccgo.c b/misc/cgo/test/callback_c_gccgo.c
deleted file mode 100644
index 91d37f02d8..0000000000
--- a/misc/cgo/test/callback_c_gccgo.c
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright 2013 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.
-
-//go:build gccgo
-
-#include "_cgo_export.h"
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-/* Test calling panic from C. This is what SWIG does. */
-
-extern void _cgo_panic(const char *);
-extern void *_cgo_allocate(size_t);
-
-void
-callPanic(void)
-{
- _cgo_panic("panic from C");
-}