analyzer: gfortran testsuite support
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 5 Feb 2020 15:54:00 +0000 (10:54 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Mon, 10 Feb 2020 21:21:03 +0000 (16:21 -0500)
commite9fb7579cbb9fa7adea13e7ee34dfd44fe19ad90
tree88e9e371a3f1ffdb59eb82d11038f45b14eebb87
parent7214fce3024d726ad548d7003fa162eb5021c491
analyzer: gfortran testsuite support

This patch adds a gfortran.dg/analyzer subdirectory with an analyzer.exp,
setting DEFAULT_FFLAGS on the tests run within it.

It also adds a couple of simple proof-of-concept tests of e.g. detecting
double-frees from gfortran.

gcc/testsuite/ChangeLog:
* gfortran.dg/analyzer/analyzer.exp: New subdirectory and .exp
suite.
* gfortran.dg/analyzer/malloc-example.f90: New test.
* gfortran.dg/analyzer/malloc.f90: New test.
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/analyzer/analyzer.exp [new file with mode: 0644]
gcc/testsuite/gfortran.dg/analyzer/malloc-example.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/analyzer/malloc.f90 [new file with mode: 0644]