1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
3 define ptr @resolver() {
7 ; CHECK: IFunc must have a Function resolver
8 ; CHECK-NEXT: ptr @ifunc_getelementptr
9 @ifunc_getelementptr = ifunc void (), ptr getelementptr (i8, ptr @resolver, i32 4)
12 ; Make sure nothing asserts on an unhandled constantexpr for the
15 ; CHECK: IFunc must have a Function resolver
16 ; CHECK-NEXT: ptr @ifunc_shl
17 @ifunc_shl = ifunc void (), ptr inttoptr (i64 shl (i64 ptrtoint (ptr @resolver to i64), i64 4) to ptr)