================
@@ -94,6 +94,37 @@ void func() {
 #pragma acc kernels loop
   for(;;){}
 
+  int i = 0, j = 0, k = 0;
+  // expected-error@+2{{missing OpenACC 'atomic-clause'; expected 'read', 
'write', 'update', or 'capture'}}
+  // expected-warning@+1{{OpenACC directives not yet implemented, pragma 
ignored}}
+#pragma acc atomic
----------------
alexey-bataev wrote:

It is allowed by the standard, means same as atomic update

https://github.com/llvm/llvm-project/pull/73015
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to