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.
11 lines
292 B
Fortran
11 lines
292 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic -Werror
|
|
module m
|
|
type a ! not BIND(C)
|
|
end type
|
|
contains
|
|
subroutine sub(x) bind(c)
|
|
!PORTABILITY: The derived type of this interoperable object should be BIND(C) [-Wportability]
|
|
type(a), pointer, intent(in) :: x
|
|
end
|
|
end
|