diff --git a/sycl/include/CL/sycl.hpp b/sycl/include/CL/sycl.hpp index 1910590bafde2..7120a83ddc378 100644 --- a/sycl/include/CL/sycl.hpp +++ b/sycl/include/CL/sycl.hpp @@ -8,6 +8,10 @@ #pragma once +#if defined(__clang__) +#warning "CL/sycl.hpp is deprecated, use sycl/sycl.hpp" +#endif + #include namespace cl { diff --git a/sycl/test/warnings/sycl_2020_deprecations.cpp b/sycl/test/warnings/sycl_2020_deprecations.cpp index 4d69748d8e8ff..67c3a1cd5424e 100644 --- a/sycl/test/warnings/sycl_2020_deprecations.cpp +++ b/sycl/test/warnings/sycl_2020_deprecations.cpp @@ -1,5 +1,6 @@ // RUN: %clangxx %fsycl-host-only -fsyntax-only -ferror-limit=0 -sycl-std=2020 -Xclang -verify -Xclang -verify-ignore-unexpected=note %s +// expected-warning@sycl/CL/sycl.hpp:12 {{CL/sycl.hpp is deprecated, use sycl/sycl.hpp}} #include #include