From 351d0ffaa1027a3173c1a95e006c2efcc3d2ac02 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 16 Jan 2014 10:12:31 -0800 Subject: Force all lang items to be reachable This prevents linker errors as found in #11591 Closes #11591 --- src/test/auxiliary/lang-item-public.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/test/auxiliary/lang-item-public.rs (limited to 'src/test/auxiliary') diff --git a/src/test/auxiliary/lang-item-public.rs b/src/test/auxiliary/lang-item-public.rs new file mode 100644 index 00000000000..123160f0c80 --- /dev/null +++ b/src/test/auxiliary/lang-item-public.rs @@ -0,0 +1,17 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#[no_std]; + +#[lang="fail_"] +fn fail(_: *i8, _: *i8, _: uint) -> ! { loop {} } + +#[no_mangle] +pub extern "C" fn rust_stack_exhausted() {} -- cgit 1.4.1-3-g733a5