blob: d9f4ec289203503eb1bab6458cef320dcaf4412b [file] [log] [blame]
Alex Crichton6efd1662014-05-19 16:30:091// 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 Kriegeree91c252016-02-11 11:34:4113// ignore-emscripten no threads support
Brian Anderson8c93a792015-03-22 20:13:1514// pretty-expanded FIXME #23616
15
Alex Crichtone77db162015-03-27 17:22:4416extern crate weak_lang_items as other;
Alex Crichton6efd1662014-05-19 16:30:0917
Aaron Turond0de2b42015-02-17 23:10:2518use std::thread;
Alex Crichton6efd1662014-05-19 16:30:0919
20fn main() {
Aaron Turond0de2b42015-02-17 23:10:2521 let _ = thread::spawn(move|| {
Alex Crichton6efd1662014-05-19 16:30:0922 other::foo()
23 });
24}