I went over the output of the following mess of a command:
`(ulimit -m 2000000; ulimit -v 2000000; git ls-files -z | parallel --xargs -0 cat | aspell list --mode=none --ignore-case | grep -E '^[A-Za-z][a-z]*$' | sort | uniq -c | sort -n | grep -vE '.{25}' | aspell pipe -W3 | grep : | cut -d' ' -f2 | less)`
and proceeded to spend a few days looking at it to find probable typos
and fixed a few hundred of them in all of the llvm project (note, the
ones I found are not anywhere near all of them, but it seems like a
good start).
Reviewed By: awarzynski, clementval
Differential Revision: https://reviews.llvm.org/D130844
20 lines
673 B
Fortran
20 lines
673 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
! Catch NULL() actual argument association with allocatable dummy argument
|
|
program test
|
|
!ERROR: Null actual argument 'NULL()' may not be associated with allocatable dummy argument 'a='
|
|
call foo1(null())
|
|
!ERROR: Null actual argument 'NULL()' may not be associated with allocatable dummy argument 'a='
|
|
call foo2(null()) ! perhaps permissible later on user request
|
|
call foo3(null()) ! ok
|
|
contains
|
|
subroutine foo1(a)
|
|
real, allocatable :: a
|
|
end subroutine
|
|
subroutine foo2(a)
|
|
real, allocatable, intent(in) :: a
|
|
end subroutine
|
|
subroutine foo3(a)
|
|
real, allocatable, optional :: a
|
|
end subroutine
|
|
end
|