From b0debc53fa19da7663ad9ed83b0073bf8be83c29 Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Fri, 4 Aug 2023 16:02:18 -0700 Subject: [PATCH] Remove [[noreturn]] attribute causing UB. --- tests/sycl_external/sycl_external_separate_unit.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/sycl_external/sycl_external_separate_unit.cpp b/tests/sycl_external/sycl_external_separate_unit.cpp index f667cbd43..7878c74ac 100644 --- a/tests/sycl_external/sycl_external_separate_unit.cpp +++ b/tests/sycl_external/sycl_external_separate_unit.cpp @@ -72,8 +72,8 @@ SYCL_EXTERNAL void before_aspect_host( } template -[[sycl::device_has(aspect)]] SYCL_EXTERNAL [[noreturn]] void -between_aspects_device(const accT& acc); +[[sycl::device_has(aspect)]] SYCL_EXTERNAL void between_aspects_device( + const accT& acc); template <> SYCL_EXTERNAL void between_aspects_device(const accT& acc) { acc[0] = value; @@ -88,8 +88,8 @@ SYCL_EXTERNAL void between_aspects_device( acc[0] = value; } template -[[sycl::device_has(aspect)]] SYCL_EXTERNAL [[noreturn]] void -between_aspects_host(hostAccT& acc); +[[sycl::device_has(aspect)]] SYCL_EXTERNAL void between_aspects_host( + hostAccT& acc); template <> SYCL_EXTERNAL void between_aspects_host(hostAccT& acc) { acc[0] = value;