From 2b6df0107976163e2c2e1f2b50b5228395ed22a5 Mon Sep 17 00:00:00 2001 From: Aleksander Fadeev Date: Wed, 4 Mar 2020 18:30:30 +0300 Subject: [PATCH] [SYCL] reqd_work_group_size attribute is reversed (fix #10) Signed-off-by: Aleksander Fadeev --- clang/test/SemaSYCL/reqd-work-group-size.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/SemaSYCL/reqd-work-group-size.cpp b/clang/test/SemaSYCL/reqd-work-group-size.cpp index a3a7d9d648f74..722f4c20f6f8b 100644 --- a/clang/test/SemaSYCL/reqd-work-group-size.cpp +++ b/clang/test/SemaSYCL/reqd-work-group-size.cpp @@ -32,7 +32,7 @@ void bar() { class Functor16 { public: - [[cl::reqd_work_group_size(16, 1, 1)]] void operator()() {} + [[cl::reqd_work_group_size(16, 1, 1)]] [[cl::reqd_work_group_size(16, 1, 1)]] void operator()() {} }; class Functor16x16x16 { @@ -42,7 +42,7 @@ class Functor16x16x16 { class Functor8 { // expected-error {{conflicting attributes applied to a SYCL kernel}} public: - [[cl::reqd_work_group_size(1, 1, 8)]] [[cl::reqd_work_group_size(1, 1, 8)]] void operator()() { // expected-note {{conflicting attribute is here}} + [[cl::reqd_work_group_size(1, 1, 8)]] void operator()() { // expected-note {{conflicting attribute is here}} f4x1x1(); } };