Skip to content

Commit e0d9bda

Browse files
Remove unwanted defines and run commands
1 parent e41dad0 commit e0d9bda

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

clang/test/SemaSYCL/sycl-device.cpp

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

4-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -fsyntax-only -verify -DNOT_STRICT -Wno-error=sycl-strict -Wno-sycl-strict %s
5-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -fsyntax-only -verify -DWARN_STRICT -Wno-error=sycl-strict %s
6-
74
#ifndef NO_SYCL
85

96
__attribute__((sycl_device)) // expected-warning {{'sycl_device' attribute only applies to functions}}
@@ -34,21 +31,17 @@ class B {
3431
__attribute__((sycl_device)) virtual void bar() = 0;
3532
};
3633

37-
#if defined(NOT_STRICT)
38-
__attribute__((sycl_device))
39-
int* func3() { return nullptr; }
34+
__attribute__((sycl_device)) int *func0() { return nullptr; }
4035

41-
__attribute__((sycl_device))
42-
void func3(int *) {}
43-
#elif defined(WARN_STRICT)
44-
__attribute__((sycl_device)) int *func3() { return nullptr; }
36+
__attribute__((sycl_device)) void func2(int *) {}
4537

46-
__attribute__((sycl_device)) void func3(int *) {}
47-
#else
4838
__attribute__((sycl_device)) int *func3() { return nullptr; }
4939

50-
__attribute__((sycl_device)) void func3(int *) {}
51-
#endif
40+
__attribute__((sycl_device)) void func4(int *) {}
41+
42+
__attribute__((sycl_device)) int *func5() { return nullptr; }
43+
44+
__attribute__((sycl_device)) void func6(int *) {}
5245

5346
#else // NO_SYCL
5447
__attribute__((sycl_device)) // expected-warning {{'sycl_device' attribute ignored}}

0 commit comments

Comments
 (0)