Skip to content

Commit ea04ef5

Browse files
Added test
1 parent 5627e26 commit ea04ef5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sycl/test/esimd/slm_load.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-device-only -fsyntax-only -Xclang -verify %s
2-
// expected-no-diagnostics
32

43
#include <CL/sycl.hpp>
54
#include <sycl/ext/intel/experimental/esimd.hpp>
@@ -14,6 +13,10 @@ void kernel() __attribute__((sycl_device)) {
1413
simd<int, 32> v1(0, 1);
1514

1615
auto v0 = slm_load<int, 32>(offsets);
16+
auto v2 = slm_load<float, 32>(offsets);
17+
// expected-error@+2 {{no matching function for call to 'slm_load'}}
18+
// expected-note@sycl/ext/intel/experimental/esimd/memory.hpp:* {{candidate template ignored}}
19+
auto v3 = slm_load<double, 32>(offsets);
1720

1821
esimd_fence(3);
1922
esimd_barrier();

0 commit comments

Comments
 (0)