2 // assembly-output: emit-asm
3 // [x64] compile-flags: --target x86_64-unknown-linux-gnu -Crelocation-model=pic
4 // [x64] needs-llvm-components: x86
7 #![feature(no_core, lang_items)]
16 // CHECK-LABEL: call_other_fn:
17 // CHECK: {{(jmpq|callq)}} *other_fn@GOTPCREL(%rip)
19 pub fn call_other_fn() -> u8 {
25 // CHECK-LABEL: other_fn:
26 // CHECK: callq *foreign_fn@GOTPCREL(%rip)
29 pub fn other_fn() -> u8 {
35 extern "C" {fn foreign_fn() -> u8;}