]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/no_owned_box_lang_item.rs
Update code to account for extern ABI requirement
[rust.git] / src / test / ui / no_owned_box_lang_item.rs
index 34d1075f9b71dbd1d1bd766d2422bb3e1a606832..c22b44ffca2a4e354fab2cd7ecfaedda8791510d 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2015 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 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 // Test that we don't ICE when we are missing the owned_box lang item.
 
 // error-pattern: requires `owned_box` lang_item
@@ -21,6 +11,6 @@ fn main() {
     let x = box 1i32;
 }
 
-#[lang = "eh_personality"] extern fn eh_personality() {}
-#[lang = "eh_unwind_resume"] extern fn eh_unwind_resume() {}
+#[lang = "eh_personality"] extern "C" fn eh_personality() {}
+#[lang = "eh_catch_typeinfo"] static EH_CATCH_TYPEINFO: u8 = 0;
 #[lang = "panic_impl"] fn panic_impl(panic: &PanicInfo) -> ! { loop {} }