summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/lto/pr46036_0.f90
blob: 558c7edc2440d2effcf44de1b77b93a8874adf2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { 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