1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -o - %s | FileCheck %s
4 __attribute__((used
)) static void *resolve_foo() { return 0; }
5 __attribute__((ifunc("resolve_foo"))) char *foo();
6 __attribute__((ifunc("resolve_foo"))) void foo2(int);
7 __attribute__((ifunc("resolve_foo"))) char foo3(float);
8 __attribute__((ifunc("resolve_foo"))) char foo4(float);
11 // CHECK: @resolve_foo = internal alias ptr (), ptr @_ZL11resolve_foov
12 // CHECK: @foo = ifunc ptr (), ptr @_ZL11resolve_foov
13 // CHECK: @foo2 = ifunc void (i32), ptr @_ZL11resolve_foov
14 // CHECK: @foo3 = ifunc i8 (float), ptr @_ZL11resolve_foov
15 // CHECK: @foo4 = ifunc i8 (float), ptr @_ZL11resolve_foov
16 // CHECK: define internal noundef ptr @_ZL11resolve_foov()