Skip to content

Commit

Permalink
Remove [[noreturn]] attribute causing UB.
Browse files Browse the repository at this point in the history
  • Loading branch information
bader committed Aug 4, 2023
1 parent dbe39ab commit b0debc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/sycl_external/sycl_external_separate_unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ SYCL_EXTERNAL void before_aspect_host<sycl::aspect::accelerator>(
}

template <sycl::aspect aspect>
[[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<sycl::aspect::cpu>(const accT& acc) {
acc[0] = value;
Expand All @@ -88,8 +88,8 @@ SYCL_EXTERNAL void between_aspects_device<sycl::aspect::accelerator>(
acc[0] = value;
}
template <sycl::aspect aspect>
[[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<sycl::aspect::cpu>(hostAccT& acc) {
acc[0] = value;
Expand Down

0 comments on commit b0debc5

Please sign in to comment.