brintos

brintos / llvm-project-archived public Read only

0
0
Text · 523 B · a1505c3 Raw
18 lines · plain
1; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s2 3define ptr @resolver() {4  ret ptr null5}6 7; CHECK: IFunc must have a Function resolver8; CHECK-NEXT: ptr @ifunc_getelementptr9@ifunc_getelementptr = ifunc void (), ptr getelementptr (i8, ptr @resolver, i32 4)10 11 12; Make sure nothing asserts on an unhandled constantexpr for the13; resolver.14 15; CHECK: IFunc must have a Function resolver16; CHECK-NEXT: ptr @ifunc_shl17@ifunc_shl = ifunc void (), ptr inttoptr (i64 add (i64 ptrtoint (ptr @resolver to i64), i64 4) to ptr)18