Files
clang-p2996/llvm/test/LTO/Resolution/X86/Inputs/ifunc2.ll
Itay Bookstein 848812a55e [Verifier] Add verification logic for GlobalIFuncs
Verify that the resolver exists, that it is a defined
Function, and that its return type matches the ifunc's
type. Add corresponding check to BitcodeReader, change
clang to emit the correct type, and fix tests to comply.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D112349
2021-10-31 20:00:57 -07:00

7 lines
153 B
LLVM

target datalayout = "e-p:64:64"
target triple = "x86_64-unknown-linux-gnu"
define i32 ()* @foo_resolver() {
ret i32 ()* inttoptr (i32 2 to i32 ()*)
}