2 ! { dg-options "-fcheck-array-temporaries" }
6 call foo(a(:,1)) ! OK, no temporary created
7 call foo(a(1,:)) ! BAD, temporary var created
15 ! { dg-output "At line 7 of file .*array_temporaries_2.f90(\n|\r\n|\r)Fortran runtime warning: An array temporary was created for argument 'x' of procedure 'foo'" }