We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a6e834 commit 11d72afCopy full SHA for 11d72af
flang/test/Integration/abi-indirect-call.f90
@@ -0,0 +1,15 @@
1
+!REQUIRES: x86-registered-target
2
+!REQUIRES: flang-supports-f128-math
3
+!RUN: %flang_fc1 -emit-llvm -triple x86_64-unknown-linux-gnu %s -o - | FileCheck %s
4
+
5
+! Test ABI of indirect calls is properly implemented in the LLVM IR.
6
7
+subroutine foo(func_ptr, z)
8
+ interface
9
+ complex(16) function func_ptr()
10
+ end function
11
+ end interface
12
+ complex(16) :: z
13
+ ! CHECK: call void %{{.*}}(ptr sret({ fp128, fp128 }) align 16 %{{.*}})
14
+ z = func_ptr()
15
+end subroutine
0 commit comments