mirror-llvm-project/flang/test/Semantics/ichar01.f90
Andre Kuhlenschmidt 83b462af17
[flang][CLI] Have the CLI hint the flag to disable a warning (#144767)
Adds a hint to the warning message to disable a warning and updates the
tests to expect this.

Also fixes a bug in the storage of canonical spelling of error flags so
that they are not used after free.
2025-06-30 10:17:05 -07:00

13 lines
503 B
Fortran

! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic
!ERROR: Character in intrinsic function ichar must have length one
print *, ichar('')
!ERROR: Character in intrinsic function iachar must have length one
print *, iachar('')
print *, ichar('a')
print *, iachar('a')
!PORTABILITY: Character in intrinsic function ichar should have length one [-Wportability]
print *, ichar('ab')
!PORTABILITY: Character in intrinsic function iachar should have length one [-Wportability]
print *, iachar('ab')
end