2 ! { dg-skip-if "" { powerpc-ibm-aix* } { "*" } { "" } }
4 ! PR 56500: [OOP] "IMPLICIT CLASS(...)" wrongly rejected
6 ! Contributed by Reinhold Bader <Reinhold.Bader@lrz.de>
8 ! Add dump-fortran-original to check, if the patch preventing a gfortran
9 ! segfault is working correctly. No cleanup needed, because the dump
11 ! { dg-options "-fdump-fortran-original" }
12 ! { dg-allow-blank-lines-in-output 1 }
13 ! { dg-prune-output "Namespace:.*-{42}" }
16 implicit class(foo
) (a
-b
)
21 allocatable
:: aaf
, caf
23 allocate(aaf
, source
=foo(2))
26 if (aaf
%i
/= 2) call abort
31 allocate(caf
, source
=foo(3))
34 if (caf
%i
/= 3) call abort
41 implicit class(*) (a
-z
)