Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/intent_optimize_1.f90 @ 127:4c56639505ff
fix function.c and add CbC-example Makefile
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 18:46:58 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! { dg-options "-O2 -fdump-tree-optimized" } ! ! Check whether the "does_not_exist" subroutine has been ! optimized away, i.e. check that "foo"'s intent(IN) gets ! honoured. ! ! PR fortran/43665 ! interface subroutine foo(x) integer, intent(in) :: x end subroutine foo end interface integer :: y y = 5 call foo(y) if (y /= 5) call does_not_exist () end ! { dg-final { scan-tree-dump-times "does_not_exist" 0 "optimized" } }