blob: c93fc4033b8f0efd625c3715fb17a8da93b5b1e7 [file] [log] [blame]
! RUN: %python %S/test_errors.py %s %flang_fc1
module dev
integer, device :: syncthreads
contains
attributes(device) subroutine sub1()
syncthreads = 1 ! syncthreads not overwritten by cudadevice
end subroutine
attributes(global) subroutine sub2()
!ERROR: 'threadfence' is use-associated from module 'cudadevice' and cannot be re-declared
integer :: threadfence
end subroutine
end module