[flang] Port test_any.sh tests to FileCheck: Hand port getdefinition* tests
authorRichard Barton <richard.barton@arm.com>
Fri, 26 Jun 2020 17:47:13 +0000 (18:47 +0100)
committerRichard Barton <richard.barton@arm.com>
Fri, 26 Jun 2020 17:47:13 +0000 (18:47 +0100)
commit66c26d93b7be0e1cbd5e1c7615a0f591c975fd27
treea46ad1ddc29e95e8f270fb7fa051cce8a982cab7
parentb4bceb94eeb3def8b164a0039b29379e83c00f0d
[flang] Port test_any.sh tests to FileCheck: Hand port getdefinition* tests

These tests are sensitive to line numbers in the input and check output.
They also successively write to a temporary file then check that.

Fix the line number issues and replace the temporary file use with successive
calls to FileCheck with different check-prefixes.

Differential Revision: https://reviews.llvm.org/D82165
flang/test/Semantics/getdefinition01.f90
flang/test/Semantics/getdefinition02.f
flang/test/Semantics/getdefinition03-a.f90
flang/test/Semantics/getdefinition04.f90
flang/test/Semantics/getdefinition05.f90