view gcc/testsuite/gfortran.dg/lto/pr46036_0.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-lto-do link }
! { dg-lto-options {{ -O -flto -ftree-vectorize }} }

function no_of_edges(self) result(res)
  integer(kind=kind(1)) :: edge_bit_string
  integer(kind=kind(1)) :: res
  integer(kind=kind(1)) :: e
  do e = 0, 11
     if (.not. btest(edge_bit_string,e)) cycle
     res = res + 1
  end do
end function no_of_edges

end program