Skip to content

Commit

Permalink
Apply suggested changes to api_misuse_test.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Steffen Larsen <[email protected]>
  • Loading branch information
lbushi25 and steffenlarsen authored Nov 6, 2024
1 parent 7b0c7bb commit 3d85911
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sycl/test/extensions/WorkGroupMemory/api_misuse_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ template <typename DataT> void test_unbounded_arr() {
});
}

template <typename DataT, typename... DataTs> void test() {
test_bounded_arr<DataT>();
test_unbounded_arr<DataT>();
if constexpr (sizeof...(DataTs))
test<DataTs...>();
template <typename... DataTs> void test() {
(test_bounded_arr<DataTs>(), ...);
(test_unbounded_arr<DataTs>(), ...);
}

int main() {
Expand Down

0 comments on commit 3d85911

Please sign in to comment.