1 // Checks that naked functions are not instrumented by -Cinstrument-coverage.
2 // Regression test for issue #105170.
5 // needs-profiler-support
6 // compile-flags: -Cinstrument-coverage
8 #![feature(naked_functions)]
13 pub unsafe extern "C" fn f() {
14 // CHECK: define void @f()
16 // CHECK-NEXT: call void asm
17 // CHECK-NEXT: unreachable
18 asm!("", options(noreturn));