We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f462bf5 commit 14ce6b6Copy full SHA for 14ce6b6
flang/test/Semantics/OpenACC/acc-common.f90
@@ -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
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