Skip to content

Commit 14ce6b6

Browse files
Unit test
1 parent f462bf5 commit 14ce6b6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
2+
module acc_common_decl
3+
implicit none
4+
integer a
5+
common /a_common/ a
6+
!$acc declare create (/a_common/)
7+
data a/42/
8+
end module acc_common_decl
9+
10+
program acc_decl_test
11+
use acc_common_decl
12+
implicit none
13+
14+
a = 1
15+
!$acc update device (/a_common/)
16+
a = 2
17+
!ERROR: Could not find COMMON block 'a_common_bad' used in OpenACC directive
18+
!$acc update device (/a_common_bad/)
19+
end program

0 commit comments

Comments
 (0)