We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75db691 commit beb49dbCopy full SHA for beb49db
clang/test/SemaSYCL/sycl-pfwg-invalid-code.cpp
@@ -1,12 +1,11 @@
1
// RUN: %clang_cc1 -fsycl-is-device %s -verify
2
3
// Tests that an error diagnostic is issued without a crash (due to a
4
-// triggered assertion) when some invalid cases are encountered in
+// triggered assertion) when some invalid cases are encountered in
5
// the processing of kernel_parallel_for_work_group.
6
7
-template <typename, typename, typename Kernel>
8
-__attribute__((sycl_kernel))
9
-void kernel_parallel_for_work_group(const Kernel&) {
+template <typename, typename, typename K>
+__attribute__((sycl_kernel)) void kernel_parallel_for_work_group(const K &) {
10
unknown(); // expected-error{{use of undeclared identifier 'unknown'}}
11
}
12
void foo() {
0 commit comments