================
@@ -17,16 +16,10 @@ int main(int argc, char **argv) {
   
   // Valid: complex expressions
   int offset = 1;
-  int count = 3;
-  int stride = 2;
-  #pragma omp target update from(data[offset:count:stride]) // OK
-  {}
-  
+
   // Invalid stride expressions
   #pragma omp target update from(data[0:4:offset-1]) // OK if offset > 1
   {}
   
-  #pragma omp target update from(data[0:count:0]) // expected-error {{section 
stride is evaluated to a non-positive value 0}} expected-error {{expected at 
least one 'to' clause or 'from' clause specified to '#pragma omp target 
update'}}
-  
   return 0;
 }
----------------
shiltian wrote:

same here

https://github.com/llvm/llvm-project/pull/169623
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to