gcc/testsuite/gfortran.dg/internal_pack_18.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-additional-options "-O0 -fdump-tree-original" } |
| 3 | ! PR 57992 - this was packed/unpacked unnecessarily. |
| 4 | ! Original case by Tobias Burnus. |
| 5 | subroutine test |
| 6 | interface |
| 7 | function f2() |
| 8 | integer, pointer, contiguous :: f2(:) |
| 9 | end function f2 |
| 10 | end interface |
| 11 | |
| 12 | call bar(f2()) |
| 13 | end subroutine test |
| 14 | ! { dg-final { scan-tree-dump-not "_gfortran_internal_pack" "original" } } |
| 15 | ! { dg-final { scan-tree-dump-not "_gfortran_internal_unpack" "original" } } |