Add asan subdirectory for gfortran.dg.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 2 May 2020 15:30:01 +0000 (17:30 +0200)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 2 May 2020 15:33:30 +0000 (17:33 +0200)
commit116784bbde9ed391393320d936ae2fff37442779
tree7a67016ce94ef696dfa1876d86316a53d715ebc8
parentdcbf228e4a1818f4733ffcadd323be5eaf5e520a
Add asan subdirectory for gfortran.dg.

Because the test case for PR 94788 requires -fsanitize=address to expose
the double free, I have created a subdirectory under gfortran.dg
where such test cases can go.

I have tested this with

make check-fortran RUNTESTFLAGS="asan.exp=*"

and it works; with a compiler that introduces the double free bug
into the test case, the result is as expected

2020-05-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/94788
* gfortran.dg/asan: New directory.
* gfortran.dg/asan/asan.exp: New file.
* gfortran.dg/asan/pointer_assign_16.f90: New test case.
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/asan/asan.exp [new file with mode: 0644]
gcc/testsuite/gfortran.dg/asan/pointer_assign_16.f90 [new file with mode: 0644]