Skip to content

Commit 3d85911

Browse files
Apply suggested changes to api_misuse_test.cpp
Co-authored-by: Steffen Larsen <[email protected]>
1 parent 7b0c7bb commit 3d85911

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sycl/test/extensions/WorkGroupMemory/api_misuse_test.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ template <typename DataT> void test_unbounded_arr() {
3232
});
3333
}
3434

35-
template <typename DataT, typename... DataTs> void test() {
36-
test_bounded_arr<DataT>();
37-
test_unbounded_arr<DataT>();
38-
if constexpr (sizeof...(DataTs))
39-
test<DataTs...>();
35+
template <typename... DataTs> void test() {
36+
(test_bounded_arr<DataTs>(), ...);
37+
(test_unbounded_arr<DataTs>(), ...);
4038
}
4139

4240
int main() {

0 commit comments

Comments
 (0)