[clang] [llvm] [Offload][Tests] Non-contiguous_update_to_tests (PR #169623)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 1 08:39:05 PST 2025
================
@@ -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
More information about the llvm-commits
mailing list