summaryrefslogtreecommitdiff
path: root/libgo/misc/cgo/test/issue4273.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/misc/cgo/test/issue4273.c')
-rw-r--r--libgo/misc/cgo/test/issue4273.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libgo/misc/cgo/test/issue4273.c b/libgo/misc/cgo/test/issue4273.c
new file mode 100644
index 00000000000..cac98768dea
--- /dev/null
+++ b/libgo/misc/cgo/test/issue4273.c
@@ -0,0 +1,10 @@
+// Copyright 2012 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.
+
+#ifdef __ELF__
+__attribute__((weak))
+__attribute__((visibility("hidden")))
+void _compilerrt_abort_impl(const char *file, int line, const char *func) {
+}
+#endif