1 // compile-flags: -C relocation-model=pic
3 #![crate_type = "rlib"]
5 // CHECK: define i8 @call_foreign_fn()
7 pub fn call_foreign_fn() -> u8 {
13 // (Allow but do not require `zeroext` here, because it is not worth effort to
14 // spell out which targets have it and which ones do not; see rust#97800.)
16 // CHECK: declare{{( zeroext)?}} i8 @foreign_fn()
17 extern "C" {fn foreign_fn() -> u8;}
19 // CHECK: !{i32 {{[78]}}, !"PIC Level", i32 2}