Skip to content

Commit 88b74f4

Browse files
banach-spaceschweitzpgi
authored andcommitted
Sync back after upstreaming - add missing test for iachar
Upstream patch: https://reviews.llvm.org/D121790
1 parent 24efa31 commit 88b74f4

File tree

1 file changed

+6
-0
lines changed
  • flang/test/Lower/intrinsic-procedures

1 file changed

+6
-0
lines changed

flang/test/Lower/intrinsic-procedures/ichar.f90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@ subroutine ichar_test(c)
2323
! CHECK: fir.call @{{.*}}OutputInteger32{{.*}}%[[ARG]]
2424
! CHECK: fir.call @{{.*}}EndIoStatement
2525
print *, ichar(str(J))
26+
27+
! "Magic" 88 below is the value returned by IACHAR (’X’)
28+
! CHECK: %[[c88:.*]] = arith.constant 88 : i32
29+
! CHECK-NEXT: fir.call @{{.*}}OutputInteger32({{.*}}, %[[c88]])
30+
! CHECK-NEXT: fir.call @{{.*}}EndIoStatement
31+
print *, iachar('X')
2632
end subroutine

0 commit comments

Comments
 (0)