From 70877f7856f748a0cdaad23adeb3241d92ad8531 Mon Sep 17 00:00:00 2001 From: Doru Bercea Date: Thu, 7 Dec 2023 21:09:51 -0500 Subject: [PATCH] Add negative check for alloc. --- test/smoke/usm-globals/usm_globals.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/smoke/usm-globals/usm_globals.cpp b/test/smoke/usm-globals/usm_globals.cpp index ffe711da8..b629b356e 100644 --- a/test/smoke/usm-globals/usm_globals.cpp +++ b/test/smoke/usm-globals/usm_globals.cpp @@ -20,9 +20,10 @@ int main() { /// CHECK: __tgt_rtl_data_submit_async: {{.*}} 0 ({{.*}} 40, {{.*}}) #pragma omp target update to(z[:10]) - /// CHECK: __tgt_rtl_data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}}) - + /// CHECK-NOT: __tgt_rtl_data_alloc: {{.*}}({{.*}} 0,{{.*}} 20,{{.*}}) /// CHECK-NOT: __tgt_rtl_data_submit_async: {{.*}} 0 ({{.*}} 20, {{.*}}) + + /// CHECK: __tgt_rtl_data_submit_async: {{.*}} 0 ({{.*}} 4, {{.*}}) #pragma omp target map(to:k[:5]) map(always, tofrom:x) map(tofrom:y) { x++;