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.
13 lines
335 B
Fortran
13 lines
335 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1 -Werror
|
|
module m
|
|
contains
|
|
subroutine unlimited(x)
|
|
class(*), intent(in) :: x
|
|
end
|
|
subroutine test
|
|
!PORTABILITY: passing Hollerith to unlimited polymorphic as if it were CHARACTER [-Whollerith-polymorphic]
|
|
call unlimited(6HHERMAN)
|
|
call unlimited('abc') ! ok
|
|
end
|
|
end
|