[llvm] [OpenMP][Offload] Fix test after #172382 (PR #172865)

Jan Patrick Lehr via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 18 06:56:12 PST 2025


https://github.com/jplehr created https://github.com/llvm/llvm-project/pull/172865

The test added in #172382 requires a debug build.

>From 5f2e837db3fdf28ad0f4ffcce8f9bcca7a38267c Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Thu, 18 Dec 2025 08:53:38 -0600
Subject: [PATCH] [OpenMP][Offload] Fix test after #172382

The test added in #172382 requires a debug build.
---
 offload/test/mapping/map_ptr_then_ptee_then_attach.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/offload/test/mapping/map_ptr_then_ptee_then_attach.c b/offload/test/mapping/map_ptr_then_ptee_then_attach.c
index 512edded6daef..88d6b8d4b812f 100644
--- a/offload/test/mapping/map_ptr_then_ptee_then_attach.c
+++ b/offload/test/mapping/map_ptr_then_ptee_then_attach.c
@@ -8,6 +8,8 @@
 // RUN: env LIBOMPTARGET_TREAT_ATTACH_AUTO_AS_ALWAYS=1 \
 // RUN: %libomptarget-run-generic 2>&1 \
 // RUN: | %fcheck-generic -check-prefix=CHECK
+//
+// REQUIRES: debug
 
 // Ensure that under LIBOMPTARGET_TREAT_ATTACH_AUTO_AS_ALWAYS, the pointer
 // attachment for map(p[0:0]) happens as if the user had specified the



More information about the llvm-commits mailing list