about summary refs log tree commit diff
path: root/tests/run-make/linker-plugin-lto-fat/main.rs
blob: ad2a90bc80190728e27953abaf94b040f9962ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![allow(internal_features)]
#![feature(no_core, lang_items)]
#![no_core]
#![crate_type = "cdylib"]

#[lang = "pointee_sized"]
trait PointeeSized {}
#[lang = "meta_sized"]
trait MetaSized: PointeeSized {}
#[lang = "sized"]
trait Sized: MetaSized {}

extern "C" {
    fn ir_callee();
}

#[no_mangle]
extern "C" fn rs_foo() {
    unsafe {
        ir_callee();
    }
}