Skip to content

Commit 67b9ed1

Browse files
[SYCL] Fix test failure due to size discrepancy of pointers
in 32 and 64 bit environment. Fix uses regex to specify size in diagnostic. Signed-off-by: Elizabeth Andrews <[email protected]>
1 parent baed6a5 commit 67b9ed1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/SemaSYCL/args-size-overflow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ queue q;
1010
using Accessor =
1111
accessor<int, 1, cl::sycl::access::mode::read_write, cl::sycl::access::target::global_buffer>;
1212

13-
// expected-warning@Inputs/sycl.hpp:220 {{size of kernel arguments (7994 bytes) may exceed the supported maximum of 2048 bytes on some devices}}
13+
// expected-warning-re@Inputs/sycl.hpp:220 {{size of kernel arguments ({{.*}} bytes) may exceed the supported maximum of 2048 bytes on some devices}}
1414

1515
void use() {
1616
struct S {
@@ -25,4 +25,4 @@ void use() {
2525
// expected-note@+1 {{in instantiation of function template specialization}}
2626
h.single_task<class Foo>(L);
2727
});
28-
}
28+
}

0 commit comments

Comments
 (0)