blob: b2ad96a899883f833797a86ab348f8cb5c468a33 [file] [log] [blame]
! { dg-do compile }
! { dg-additional-options "-fdump-tree-gimple" }
! Test 'declare variant' directive with an explicit base procedure name.
module main
implicit none
!$omp declare variant (base: variant) match (construct={target,parallel})
contains
subroutine variant ()
end subroutine
subroutine base ()
end subroutine
subroutine test1 ()
!$omp target
!$omp parallel
call base () ! { dg-final { scan-tree-dump-times "variant \\\(\\\);" 1 "gimple" } }
!$omp end parallel
!$omp end target
end subroutine
end module