1 ; RUN: verify-uselistorder < %s
3 ; Global referencing ifunc.
4 @ptr_foo = global ptr @foo_ifunc
7 @alias_foo = alias void (), ptr @foo_ifunc
9 @foo_ifunc = ifunc void (), ptr @foo_resolver
11 define ptr @foo_resolver() {
16 ; Function referencing ifunc.
19 call void @foo_ifunc()
23 ; Global referencing function.
24 @ptr_bar = global ptr @bar
27 @alias_bar = alias void (), ptr @bar
29 @bar_ifunc = ifunc void (), ptr @bar_resolver
31 define ptr @bar_resolver() {
36 ; Function referencing bar.