testsuite: add additional option to force DSE execution [PR103662]

This fixes a dump tree match check that is UNRESOLVED with the -O0
optimization option, as the optimization pass corresponding to the
dump file is not run at -O0, and the dump is not generated.

	PR fortran/103662

gcc/testsuite/ChangeLog:

	* gfortran.dg/unlimited_polymorphic_3.f03: Force execution of
	the DSE optimization pass.
This commit is contained in:
Mikael Morin 2022-04-25 13:14:20 +02:00
parent f0e170f72f
commit 6cc26f3037

View file

@ -1,5 +1,5 @@
! { dg-do run }
! { dg-additional-options "-fdump-tree-dse-details" }
! { dg-additional-options "-ftree-dse -fdump-tree-dse-details" }
!
! Check that pointer assignments allowed by F2003:C717
! work and check null initialization of CLASS(*) pointers.