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