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.
iachar
1 parent 24efa31 commit 88b74f4Copy full SHA for 88b74f4
flang/test/Lower/intrinsic-procedures/ichar.f90
@@ -23,4 +23,10 @@ subroutine ichar_test(c)
23
! CHECK: fir.call @{{.*}}OutputInteger32{{.*}}%[[ARG]]
24
! CHECK: fir.call @{{.*}}EndIoStatement
25
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')
32
end subroutine
0 commit comments