Allow Flang kind printing in complex.exp,pointer-to-pointer.exp,vla-ptr-info.exp
authorAlok Kumar Sharma <AlokKumar.Sharma@amd.com>
Thu, 3 Sep 2020 16:35:18 +0000 (22:05 +0530)
committerAlok Kumar Sharma <AlokKumar.Sharma@amd.com>
Thu, 3 Sep 2020 16:35:18 +0000 (22:05 +0530)
commitc5cd900e4f197870812c2d3e2c194871c171ef42
treef2b9774241c88799f404b5c02615d7aa5250a78b
parente56798df08154c6e5155d3bb6cb536a14de0ebb4
Allow Flang kind printing in complex.exp,pointer-to-pointer.exp,vla-ptr-info.exp

In the test cases complex.exp,pointer-to-pointer.exp,vla-ptr-info.exp
fortran.exp routines are not used, which are to determine the type/kind
string. Due to this these test incorrectly fail for Flang.
Now test cases are modified to use fortran.exp routines. fortran.exp
file is modified to add absent routines fortran_complex8 and
fortran_complex16.

gdb/testsuite/ChangeLog

* lib/fortran.exp (fortran_complex8): New proc.
(fortran_complex16): New proc.
* gdb.fortran/complex.exp: Use routines from fortran.exp
* gdb.fortran/pointer-to-pointer.exp: Likewise.
* gdb.fortran/vla-ptr-info.exp: Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/complex.exp
gdb/testsuite/gdb.fortran/pointer-to-pointer.exp
gdb/testsuite/gdb.fortran/vla-ptr-info.exp
gdb/testsuite/lib/fortran.exp