Alex Crichton | 6efd166 | 2014-05-19 16:30:09 | [diff] [blame] | 1 | // Copyright 2014 The Rust Project Developers. See the COPYRIGHT |
| 2 | // file at the top-level directory of this distribution and at |
| 3 | // http://rust-lang.org/COPYRIGHT. |
| 4 | // |
| 5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
| 6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
| 7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your |
| 8 | // option. This file may not be copied, modified, or distributed |
| 9 | // except according to those terms. |
| 10 | |
| 11 | // aux-build:weak-lang-items.rs |
| 12 | |
Pierre Krieger | ee91c25 | 2016-02-11 11:34:41 | [diff] [blame] | 13 | // ignore-emscripten no threads support |
Brian Anderson | 8c93a79 | 2015-03-22 20:13:15 | [diff] [blame] | 14 | // pretty-expanded FIXME #23616 |
| 15 | |
Alex Crichton | e77db16 | 2015-03-27 17:22:44 | [diff] [blame] | 16 | extern crate weak_lang_items as other; |
Alex Crichton | 6efd166 | 2014-05-19 16:30:09 | [diff] [blame] | 17 | |
Aaron Turon | d0de2b4 | 2015-02-17 23:10:25 | [diff] [blame] | 18 | use std::thread; |
Alex Crichton | 6efd166 | 2014-05-19 16:30:09 | [diff] [blame] | 19 | |
| 20 | fn main() { |
Aaron Turon | d0de2b4 | 2015-02-17 23:10:25 | [diff] [blame] | 21 | let _ = thread::spawn(move|| { |
Alex Crichton | 6efd166 | 2014-05-19 16:30:09 | [diff] [blame] | 22 | other::foo() |
| 23 | }); |
| 24 | } |