Skip to content

Commit b683d3b

Browse files
alexeyvoronov-intelbader
authored andcommitted
[SYCL][NFC] Move an item class check to right place.
Moved the check of class item from the test file 'types.cpp' into the test file 'item.cpp'. Signed-off-by: Alexey Voronov <[email protected]>
1 parent 7173166 commit b683d3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sycl/test/basic_tests/item.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,9 @@ int main() {
107107
cl::sycl::item<3, true> three_dim_check =
108108
Builder::createItem<3, true>({4, 8, 16}, {2, 4, 8}, {0, 0, 0});
109109
assert((three_dim_transformed == three_dim_check));
110+
111+
using value_type = decltype(std::declval<cl::sycl::item<1>>()[0]);
112+
static_assert(!std::is_reference<value_type>::value,
113+
"Expected a non-reference type");
110114
}
111115

sycl/test/basic_tests/types.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,4 @@ int main() {
121121
CHECK_SIZE_VEC(s::cl_ulong);
122122
CHECK_SIZE_VEC(s::cl_float);
123123
CHECK_SIZE_VEC(s::cl_double);
124-
125-
using value_type = decltype(std::declval<cl::sycl::item<1>>()[0]);
126-
static_assert(!std::is_reference<value_type>::value,
127-
"Expected a non-reference type");
128124
}

0 commit comments

Comments
 (0)