Skip to content

Commit 11d72af

Browse files
committed
add integration test
1 parent 2a6e834 commit 11d72af

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)