Skip to content

Commit 68af609

Browse files
author
Sergey Kanaev
committed
[SYCL] Fix test. Fix review comments.
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
1 parent 283b638 commit 68af609

File tree

4 files changed

+4
-18
lines changed

4 files changed

+4
-18
lines changed

clang/test/SemaSYCL/call-to-undefined-function.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %clang_cc1 -fsycl-is-device -verify -fsyntax-only %s
22

33
void defined() {
4-
// empty
54
}
65

76
void undefined();
@@ -16,7 +15,6 @@ __attribute__((sycl_kernel)) void kernel_single_task(Func kernelFunc) {
1615

1716
template <typename T>
1817
void definedTpl() {
19-
// empty
2018
}
2119

2220
template <typename T>
@@ -28,67 +26,57 @@ extern SYCL_EXTERNAL void undefinedExternalTpl();
2826

2927
template <typename T, bool X>
3028
void definedPartialTpl() {
31-
// empty
3229
}
3330

3431
template <>
3532
void definedPartialTpl<char, true>() {
36-
// empty
3733
}
3834

3935
template <typename T, bool X>
4036
struct Tpl {
4137
void defined() {
42-
// empty
4338
}
4439
};
4540

4641
template <typename T>
4742
struct Tpl<T, true> {
4843
void defined() {
49-
// empty
5044
}
5145
};
5246

5347
template <typename T, bool X>
5448
struct TplWithTplMethod {
5549
template <typename T2, bool Y>
5650
void defined() {
57-
// empty
5851
}
5952
};
6053

6154
template <typename T>
6255
struct TplWithTplMethod<T, true> {
6356
template <typename T2, bool Y>
6457
void defined() {
65-
// empty
6658
}
6759
};
6860

6961
template <typename T, bool X>
7062
struct TplWithTplMethod2 {
7163
template <typename T2, bool Y>
7264
void defined() {
73-
// empty
7465
}
7566

7667
template <>
7768
void defined<char, true>() {
78-
// empty
7969
}
8070
};
8171

8272
template <typename T>
8373
struct TplWithTplMethod2<T, true> {
8474
template <typename T2, bool Y>
8575
void defined() {
86-
// empty
8776
}
8877

8978
template <>
9079
void defined<char, true>() {
91-
// empty
9280
}
9381
};
9482

@@ -101,7 +89,6 @@ void useFwDeclFn() {
10189
}
10290

10391
void forwardDeclFn() {
104-
// empty
10592
}
10693

10794
int main() {
@@ -179,5 +166,4 @@ int main() {
179166
}
180167

181168
void forwardDeclFn2() {
182-
// empty
183169
}

clang/test/SemaSYCL/deferred-diagnostics-emit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ __attribute__((sycl_kernel)) void kernel_single_task(Func kernelFunc) {
1616
} // namespace cl
1717

1818
//variadic functions from SYCL kernels emit a deferred diagnostic
19-
void variadic(int, ...);
19+
void variadic(int, ...) {}
2020

2121
int calledFromKernel(int a) {
2222
// expected-error@+1 {{zero-length arrays are not permitted in C++}}

clang/test/SemaSYCL/sycl-restrict.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fcxx-exceptions -triple spir64 -fsycl-is-device -Wno-return-type -verify -fsyntax-only -std=c++17 -DSYCL_STRICT %s
1+
// RUN: %clang_cc1 -fcxx-exceptions -triple spir64 -fsycl-is-device -Wno-return-type -verify -fsyntax-only -std=c++17 %s
22
// RUN: %clang_cc1 -fcxx-exceptions -triple spir64 -fsycl-is-device -fno-sycl-allow-func-ptr -Wno-return-type -verify -fsyntax-only -std=c++17 %s
33
// RUN: %clang_cc1 -fcxx-exceptions -triple spir64 -fsycl-is-device -DALLOW_FP=1 -fsycl-allow-func-ptr -Wno-return-type -verify -fsyntax-only -std=c++17 %s
44

clang/test/SemaSYCL/sycl-varargs-cconv.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// The following runs only uses -Wno-sycl-strict to bypass SYCL_EXTERNAL applied
2-
// to funtion with raw pointer parameter
1+
// The following runs uses -Wno-sycl-strict to bypass SYCL_EXTERNAL applied to
2+
// funtion with raw pointer parameter
33
// RUN: %clang_cc1 -fsycl-is-device -verify -Wno-sycl-strict -fsyntax-only %s
44
// RUN: %clang_cc1 -fsycl-is-device -verify -Wno-sycl-strict -fsyntax-only -DPRINTF_INVALID_DEF %s
55
// RUN: %clang_cc1 -fsycl-is-device -verify -fsyntax-only -Wno-sycl-strict -DPRINTF_INVALID_DECL %s

0 commit comments

Comments
 (0)