repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[flang] Accept polymorphic component element in storage_size
[llvm-project.git]
/
flang
/
test
/
Semantics
/
OpenACC
/
acc-resolve02.f90
blob
861cb26e31a30b74bdc0a510a6863f61d771da7f
1
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
2
3
subroutine
compute
()
4
integer
::
a
(
3
),
c
,
i
5
6
a
=
1
7
!ERROR: 'c' appears in more than one data-sharing clause on the same OpenACC directive
8
!$acc parallel firstprivate(c) private(c)
9
do
i
=
1
,
3
10
a
(
i
) =
c
11
end do
12
!$acc end parallel
13
end subroutine
compute
14
15
program
mm
16
call
compute
()
17
end