testsuite: arm: Relax register selection [PR116623]
[official-gcc.git] / libgo / misc / cgo / test / callback_c_gccgo.c
blob4eaa8184b30482cf510a311062672f1b779cfc09
1 // Copyright 2013 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.
5 // +build gccgo
7 #include "_cgo_export.h"
8 #include <stdint.h>
9 #include <stdio.h>
10 #include <stdlib.h>
12 /* Test calling panic from C. This is what SWIG does. */
14 extern void _cgo_panic(const char *);
15 extern void *_cgo_allocate(size_t);
17 void
18 callPanic(void)
20 _cgo_panic("panic from C");