URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [array_temporaries_2.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-fcheck-array-temporaries" }program testimplicit noneinteger :: a(3,3)call foo(a(:,1)) ! OK, no temporary createdcall foo(a(1,:)) ! BAD, temporary var createdcontainssubroutine foo(x)integer :: x(3)x = 5end subroutine fooend program test! { 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'" }
