1 ; RUN: llvm-extract -func foo -S %s | FileCheck %s
3 ; llvm-extract should not copy ifuncs into the new module, so make sure they
4 ; are turned into declarations.
6 ; CHECK: define void @foo() {
7 ; CHECK: call void @ifunc()
13 define void @ifunc_impl() {
17 ; CHECK: declare void @ifunc()
18 @ifunc = ifunc void (), ptr @ifunc_resolver
20 define internal ptr @ifunc_resolver() {