summaryrefslogtreecommitdiffstats
path: root/misc/cgo/test/issue4273.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/test/issue4273.c')
-rw-r--r--misc/cgo/test/issue4273.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/cgo/test/issue4273.c b/misc/cgo/test/issue4273.c
new file mode 100644
index 0000000..cac9876
--- /dev/null
+++ b/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