Skip to content

Commit 0bd4738

Browse files
authored
[NFC][SYCL] Drop -Wno-sycl-2017-compat flag from tests (#14239)
This PR is part of an ongoing effort of complete removal of SYCL 1.2.1 (2017) support. There are only two diagnostics which can be emitted as part of `sycl-2017-compat` group and neither of them in triggered in tests changed in this commit. Therefore, the flag is useless in those tests and we can safely remove the use of it in anticipation of complete removal of that warnings category. There are more tests that use the flag, but they will be addressed in a separate PR, because they will require more changes to avoid failures in them. Related PRs: #13411, #13556
1 parent 350b56f commit 0bd4738

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+61
-63
lines changed

clang/test/SemaSYCL/accessor-type-diagnostics.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// RUN: %clang_cc1 -triple spir64 -fsycl-is-device -verify \
2-
// RUN: -aux-triple x86_64-unknown-linux-gnu -fsyntax-only \
3-
// RUN: -Wno-sycl-2017-compat %s
2+
// RUN: -aux-triple x86_64-unknown-linux-gnu -fsyntax-only %s
43
// RUN: %clang_cc1 -triple spir64 -fsycl-is-device -verify \
5-
// RUN: -aux-triple x86_64-pc-windows-msvc -fsyntax-only \
6-
// RUN: -Wno-sycl-2017-compat %s
4+
// RUN: -aux-triple x86_64-pc-windows-msvc -fsyntax-only %s
75
//
86
// Ensure SYCL type restrictions are applied to accessors as well.
97

clang/test/SemaSYCL/buffer_location.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -Wno-sycl-2017-compat -ast-dump %s | FileCheck %s
2-
// RUN: %clang_cc1 -fsycl-is-device -Wno-sycl-2017-compat -verify -pedantic -DTRIGGER_ERROR %s
1+
// RUN: %clang_cc1 -fsycl-is-device -ast-dump %s | FileCheck %s
2+
// RUN: %clang_cc1 -fsycl-is-device -verify -pedantic -DTRIGGER_ERROR %s
33

44
#include "Inputs/sycl.hpp"
55

clang/test/SemaSYCL/deferred-diagnostics-aux-builtin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -triple spir64-unknown-unknown -aux-triple x86_64-unknown-linux-gnu -Wno-sycl-2017-compat -verify -fsyntax-only %s
1+
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -triple spir64-unknown-unknown -aux-triple x86_64-unknown-linux-gnu -verify -fsyntax-only %s
22

33
#include "sycl.hpp"
44

clang/test/SemaSYCL/implicit-sycl-device-attr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -triple spir64 \
22
// RUN: -aux-triple x86_64-unknown-linux-gnu -Wno-return-type -verify \
3-
// RUN: -Wno-sycl-2017-compat -fsyntax-only -std=c++17 %s
3+
// RUN: -fsyntax-only -std=c++17 %s
44

55
// add_ir_attributes_function attribute used to represent compile-time SYCL
66
// properties and some of those properties are intended to be turned into

clang/test/SemaSYCL/inline-asm.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -Wno-sycl-2017-compat -verify %s -DLINUX_ASM
2-
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -Wno-sycl-2017-compat -verify %s -DLINUX_ASM -DSPIR_CHECK -triple spir64-unknown-unknown
3-
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -Wno-sycl-2017-compat -verify -triple x86_64-windows -fasm-blocks %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s -DLINUX_ASM
2+
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s -DLINUX_ASM -DSPIR_CHECK -triple spir64-unknown-unknown
3+
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify -triple x86_64-windows -fasm-blocks %s
44

55
#ifndef SPIR_CHECK
66
//expected-no-diagnostics

clang/test/SemaSYCL/intel-fpga-loop-ast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -Wno-sycl-2017-compat -ast-dump %s | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -ast-dump %s | FileCheck %s
22

33
// Add AST tests for Loop attributes: [[intel::enable_loop_pipelining]],
44
// [[intel::max_interleaving()]], [[intel::loop_coalesce]],

clang/test/SemaSYCL/intel-fpga-no-global-work-offset-ast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -Wno-sycl-2017-compat -ast-dump %s | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -ast-dump %s | FileCheck %s
22

33
// Tests for AST of Intel FPGA no_global_work_offset function attribute.
44

clang/test/SemaSYCL/intel-fpga-nofusion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -fsyntax-only -ast-dump -Wno-sycl-2017-compat -verify %s | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -fsyntax-only -ast-dump -verify %s | FileCheck %s
22
// expected-no-diagnostics
33

44
#include "sycl.hpp"

clang/test/SemaSYCL/intel-max-global-work-dim-device-ast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 %s -fsyntax-only -ast-dump -fsycl-is-device -internal-isystem %S/Inputs -sycl-std=2017 -Wno-sycl-2017-compat -triple spir64 | FileCheck %s
1+
// RUN: %clang_cc1 %s -fsyntax-only -ast-dump -fsycl-is-device -internal-isystem %S/Inputs -sycl-std=2017 -triple spir64 | FileCheck %s
22

33
// The test checks AST of [[intel::max_global_work_dim()]] attribute.
44

clang/test/SemaSYCL/intel-max-global-work-dim-device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 %s -fsyntax-only -fsycl-is-device -internal-isystem %S/Inputs -sycl-std=2020 -Wno-sycl-2017-compat -triple spir64 -verify
1+
// RUN: %clang_cc1 %s -fsyntax-only -fsycl-is-device -internal-isystem %S/Inputs -sycl-std=2020 -triple spir64 -verify
22

33
// The test checks support and functionality of [[intel::max_global_work_dim()]] attribute.
44

clang/test/SemaSYCL/intel-max-global-work-dim-host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-host -Wno-sycl-2017-compat -fsyntax-only -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-host -fsyntax-only -verify %s
22
// expected-no-diagnostics
33

44
[[intel::max_global_work_dim(2)]] void func_do_not_ignore() {}

clang/test/SemaSYCL/intel-max-work-group-size-host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-host -fsyntax-only -Wno-sycl-2017-compat -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-host -fsyntax-only -verify %s
22
// expected-no-diagnostics
33

44
[[intel::max_work_group_size(2, 2, 2)]] void func_do_not_ignore() {}

clang/test/SemaSYCL/intel-reqd-work-group-size-ast-device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -sycl-std=2017 -Wno-sycl-2017-compat -ast-dump %s | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -sycl-std=2017 -ast-dump %s | FileCheck %s
22

33
// Test for AST of reqd_work_group_size kernel attribute in SYCL 1.2.1.
44

clang/test/SemaSYCL/intel-reqd-work-group-size-host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-host -Wno-sycl-2017-compat -fsyntax-only -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-host -fsyntax-only -verify %s
22
// expected-no-diagnostics
33

44
[[sycl::reqd_work_group_size(4)]] void f4x1x1() {}

clang/test/SemaSYCL/intel-work-group-size-hint-ast-device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -sycl-std=2017 -Wno-sycl-2017-compat -ast-dump %s | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -sycl-std=2017 -ast-dump %s | FileCheck %s
22

33
// Test for AST of work_group_size_hint kernel attribute in SYCL 1.2.1.
44

clang/test/SemaSYCL/invalid-kernel-arguments.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -Wno-sycl-2017-compat -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s
22

33
// This test checks that compiler doesn't crash if type of kernel argument is
44
// invalid.

clang/test/SemaSYCL/kernel-arg-opt-report.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// RUN: %clang_cc1 -triple spir64-unknown-unknown -fsycl-is-device \
2-
// RUN: -Wno-sycl-2017-compat -emit-llvm-bc %s -o %t-host.bc -opt-record-file %t-host.yaml
2+
// RUN: -emit-llvm-bc %s -o %t-host.bc -opt-record-file %t-host.yaml
33
// RUN: FileCheck -check-prefix=SPIR --input-file %t-host.yaml %s
44

55
// RUN: %clang_cc1 -triple nvptx64-unknown-unknown -fsycl-is-device \
6-
// RUN: -Wno-sycl-2017-compat -emit-llvm-bc %s -o %t-host.bc -opt-record-file %t-host.yaml
6+
// RUN: -emit-llvm-bc %s -o %t-host.bc -opt-record-file %t-host.yaml
77
// RUN: FileCheck -check-prefix=NVPTX --input-file %t-host.yaml %s
88
// The test generates remarks about the kernel argument, their location and type
99
// in the resulting yaml file.

clang/test/SemaSYCL/kernel-function-type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -Wno-sycl-2017-compat -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s
22
// expected-no-diagnostics
33

44
// The kernel_single_task call is emitted as an OpenCL kernel function. The call

clang/test/SemaSYCL/lambda_implicit_capture_this.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -Wno-sycl-2017-compat -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s
22
//
33
// This test checks that the compiler issues an error on attempt to capture
44
// "this" pointer by lambdas passed to the device code (directly and indirectly)

clang/test/SemaSYCL/loop_fusion_ast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -Wno-sycl-2017-compat -ast-dump %s | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -ast-dump %s | FileCheck %s
22

33
// Tests for AST of Intel FPGA loop fusion function attributes
44
#include "sycl.hpp"

clang/test/SemaSYCL/loop_unroll.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -Wno-sycl-2017-compat -verify -pedantic %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify -pedantic %s
22

33
template <int A>
44
void bar() {

clang/test/SemaSYCL/markfunction-astconsumer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -Wno-return-type -verify -Wno-sycl-2017-compat -fsyntax-only -std=c++17 %s
1+
// RUN: %clang_cc1 -fsycl-is-device -Wno-return-type -verify -fsyntax-only -std=c++17 %s
22
void bar();
33

44
template <typename T>

clang/test/SemaSYCL/max-concurrency-ast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -Wno-sycl-2017-compat -ast-dump %s | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -ast-dump %s | FileCheck %s
22

33
// Tests for AST of Intel FPGA max concurrency function attribute.
44
#include "sycl.hpp"

clang/test/SemaSYCL/no-vtables.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -verify -Wno-sycl-2017-compat -emit-llvm-only %s
1+
// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -verify -emit-llvm-only %s
22
// expected-no-diagnostics
33
// Should never fail, since the type is never used in kernel code.
44

clang/test/SemaSYCL/no-vtables2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -Wno-return-type -verify -Wno-sycl-2017-compat -fsyntax-only %s
1+
// RUN: %clang_cc1 -fsycl-is-device -Wno-return-type -verify -fsyntax-only %s
22

33
struct Base {
44
virtual void f() const {}

clang/test/SemaSYCL/num_simd_work_items.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 %s -fsycl-is-device -internal-isystem %S/Inputs -triple spir64 -fsyntax-only -sycl-std=2020 -Wno-sycl-2017-compat -verify
1+
// RUN: %clang_cc1 %s -fsycl-is-device -internal-isystem %S/Inputs -triple spir64 -fsyntax-only -sycl-std=2020 -verify
22

33
// The test checks support and functionality of [[intel::num_simd_work_items()]] attribute.
44

clang/test/SemaSYCL/num_simd_work_items_ast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 %s -fsycl-is-device -internal-isystem %S/Inputs -triple spir64 -fsyntax-only -sycl-std=2017 -Wno-sycl-2017-compat -ast-dump | FileCheck %s
1+
// RUN: %clang_cc1 %s -fsycl-is-device -internal-isystem %S/Inputs -triple spir64 -fsyntax-only -sycl-std=2017 -ast-dump | FileCheck %s
22

33
// The test checks AST of [[intel::num_simd_work_items()]] attribute.
44

clang/test/SemaSYCL/num_simd_work_items_host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-host -fsyntax-only -Wno-sycl-2017-compat -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-host -fsyntax-only -verify %s
22
// expected-no-diagnostics
33

44
[[intel::num_simd_work_items(2)]] void func_do_not_ignore() {}

clang/test/SemaSYCL/pointer-to-vla.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -triple spir64 -fsyntax-only -Wno-sycl-2017-compat -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-device -triple spir64 -fsyntax-only -verify %s
22
//
33
// This test checks if compiler reports compilation error on an attempt to pass
44
// a pointer to VLA as kernel argument

clang/test/SemaSYCL/prohibit-thread-local.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -triple spir64 -verify -Wno-sycl-2017-compat -fsyntax-only %s
1+
// RUN: %clang_cc1 -fsycl-is-device -triple spir64 -verify -fsyntax-only %s
22

33
thread_local const int prohobit_ns_scope = 0;
44
thread_local int prohobit_ns_scope2 = 0;

clang/test/SemaSYCL/reference-kernel-param.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -verify -Wno-sycl-2017-compat -fsyntax-only %s
1+
// RUN: %clang_cc1 -fsycl-is-device -verify -fsyntax-only %s
22

33
// This test checks if compiler reports compilation error on an attempt to pass
44
// a reference as SYCL kernel parameter.

clang/test/SemaSYCL/reqd-sub-group-size-ast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -sycl-std=2017 -Wno-sycl-2017-compat -ast-dump %s | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -sycl-std=2017 -ast-dump %s | FileCheck %s
22

33
// The test checks AST of [[intel::reqd_sub_group_size()]] attribute.
44

clang/test/SemaSYCL/restrict-recursion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -Wno-return-type -verify -Wno-sycl-2017-compat -fsyntax-only -std=c++17 %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -Wno-return-type -verify -fsyntax-only -std=c++17 %s
22

33
// This recursive function is not called from sycl kernel,
44
// so it should not be diagnosed.

clang/test/SemaSYCL/restrict-recursion2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -Wno-return-type -verify -Wno-sycl-2017-compat -fsyntax-only -std=c++17 %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -Wno-return-type -verify -fsyntax-only -std=c++17 %s
22

33
// This recursive function is not called from sycl kernel,
44
// so it should not be diagnosed.

clang/test/SemaSYCL/restrict-recursion3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -Wno-return-type -Wno-sycl-2017-compat -Wno-error=sycl-strict -verify -fsyntax-only -std=c++17 %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -Wno-return-type -Wno-error=sycl-strict -verify -fsyntax-only -std=c++17 %s
22

33
// This recursive function is not called from sycl kernel,
44
// so it should not be diagnosed.

clang/test/SemaSYCL/restrict-recursion4.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -Wno-return-type -Wno-sycl-2017-compat -Wno-error=sycl-strict -verify -fsyntax-only -std=c++17 %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -Wno-return-type -Wno-error=sycl-strict -verify -fsyntax-only -std=c++17 %s
22

33
// This recursive function is not called from sycl kernel,
44
// so it should not be diagnosed.

clang/test/SemaSYCL/stall_enable_device.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang_cc1 %s -fsyntax-only -internal-isystem %S/Inputs -fsycl-is-device -Wno-sycl-2017-compat -DTRIGGER_ERROR -verify
2-
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -fsyntax-only -ast-dump -Wno-sycl-2017-compat %s | FileCheck %s
1+
// RUN: %clang_cc1 %s -fsyntax-only -internal-isystem %S/Inputs -fsycl-is-device -DTRIGGER_ERROR -verify
2+
// RUN: %clang_cc1 -fsycl-is-device -internal-isystem %S/Inputs -fsyntax-only -ast-dump %s | FileCheck %s
33

44
// Test that checks [[intel::use_stall_enable_clusters]] attribute support on function.
55

clang/test/SemaSYCL/sycl-callstack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -verify -Wno-sycl-2017-compat -fsyntax-only -std=c++17 %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -verify -fsyntax-only -std=c++17 %s
22

33
template <typename name, typename Func>
44
__attribute__((sycl_kernel)) void kernel_single_task(const Func &kernelFunc) {

clang/test/SemaSYCL/sycl-cconv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-windows -aux-triple x86_64-pc-windows-msvc -fsyntax-only -Wno-sycl-2017-compat -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-windows -aux-triple x86_64-pc-windows-msvc -fsyntax-only -verify %s
22

33
// expected-no-warning@+1
44
__inline __cdecl int printf(char const* const _Format, ...) { return 0; }

clang/test/SemaSYCL/sycl-device-const-static.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -verify -Wno-sycl-2017-compat -fsyntax-only %s
1+
// RUN: %clang_cc1 -fsycl-is-device -verify -fsyntax-only %s
22

33
struct Base {};
44
struct S {

clang/test/SemaSYCL/sycl-device-static-restrict.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -verify -Wno-sycl-2017-compat -fsyntax-only %s
1+
// RUN: %clang_cc1 -fsycl-is-device -verify -fsyntax-only %s
22
const int glob1 = 1;
33
int glob2 = 2;
44
template <typename name, typename Func>

clang/test/SemaSYCL/sycl-device-template-diag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -verify -Wno-sycl-2017-compat -fsyntax-only %s -internal-isystem %S/Inputs
1+
// RUN: %clang_cc1 -fsycl-is-device -verify -fsyntax-only %s -internal-isystem %S/Inputs
22

33
// This test verifies that we generate deferred diagnostics when
44
// such diagnostics are in a function template.

clang/test/SemaSYCL/sycl-dllimport-dllexport.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// RUN: %clang_cc1 -triple spir64-unknown-unknown -fms-extensions \
22
// RUN: -aux-triple x86_64-unknown-linux-gnu -fsycl-is-device \
3-
// RUN: -fsyntax-only -Wno-sycl-2017-compat -DWARNCHECK %s -o /dev/null 2>&1 | FileCheck %s
3+
// RUN: -fsyntax-only -DWARNCHECK %s -o /dev/null 2>&1 | FileCheck %s
44
// check random triple aux-triple with sycl-device
55

6-
// RUN: %clang_cc1 -triple spir64-unknown-windows -Wno-sycl-2017-compat -fsyntax-only \
6+
// RUN: %clang_cc1 -triple spir64-unknown-windows -fsyntax-only \
77
// RUN: -fms-extensions -DWARNCHECK %s -o /dev/null 2>&1 | FileCheck --check-prefixes CHECKALL %s
88
// check without -aux-triple but sycl-device
99

1010
// RUN: %clang_cc1 -triple spir64-unknown-windows \
1111
// RUN: -fsycl-is-device -aux-triple x86_64-pc-windows-msvc -fms-extensions \
12-
// RUN: -fsyntax-only -Wno-sycl-2017-compat -DWARNCHECK %s -o /dev/null 2>&1 | \
12+
// RUN: -fsyntax-only -DWARNCHECK %s -o /dev/null 2>&1 | \
1313
// RUN: FileCheck %s --check-prefixes CHECKALL
1414
// check -aux-tripe without sycl-device
1515

16-
// RUN: %clang_cc1 -triple spir64-unknown-windows -Wno-sycl-2017-compat -fsyntax-only \
16+
// RUN: %clang_cc1 -triple spir64-unknown-windows -fsyntax-only \
1717
// RUN: -aux-triple x86_64-pc-windows-msvc -fsycl-is-device \
1818
// RUN: -fms-extensions -verify %s
1919
// check error message when dllimport function gets called in sycl-kernel code

clang/test/SemaSYCL/sycl-fptr-lambda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -std=c++14 -verify -Wno-sycl-2017-compat -fsyntax-only %s
1+
// RUN: %clang_cc1 -fsycl-is-device -std=c++14 -verify -fsyntax-only %s
22
// expected-no-diagnostics
33

44
template <typename name, typename Func>

clang/test/SemaSYCL/sycl-pseudo-dtor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -verify -Wno-sycl-2017-compat -fsyntax-only %s
1+
// RUN: %clang_cc1 -fsycl-is-device -verify -fsyntax-only %s
22

33
template <typename functor_t>
44
struct functor_wrapper{

clang/test/SemaSYCL/sycl-restrict.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -triple spir64 \
22
// RUN: -aux-triple x86_64-unknown-linux-gnu -Wno-return-type -verify \
3-
// RUN: -Wno-sycl-2017-compat -fsyntax-only -std=c++17 %s
3+
// RUN: -fsyntax-only -std=c++17 %s
44
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -triple spir64 \
55
// RUN: -aux-triple x86_64-unknown-linux-gnu -fno-sycl-allow-func-ptr \
6-
// RUN: -Wno-return-type -verify -Wno-sycl-2017-compat -fsyntax-only \
6+
// RUN: -Wno-return-type -verify -fsyntax-only \
77
// RUN: -std=c++17 %s
88
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -triple spir64 \
99
// RUN: -aux-triple x86_64-unknown-linux-gnu -DALLOW_FP=1 \
1010
// RUN: -fsycl-allow-func-ptr -Wno-return-type -verify \
11-
// RUN: -Wno-sycl-2017-compat -fsyntax-only -std=c++17 %s
11+
// RUN: -fsyntax-only -std=c++17 %s
1212

1313
namespace std {
1414
class type_info;

clang/test/SemaSYCL/tls_error.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -triple spir64 -verify -Wno-sycl-2017-compat -fsyntax-only %s
1+
// RUN: %clang_cc1 -fsycl-is-device -triple spir64 -verify -fsyntax-only %s
22

33
extern __thread void* __once_callable; // expected-no-error
44
extern __thread void (*__once_call)(); // expected-no-error

clang/test/SemaSYCL/unevaluated-function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -verify -Wno-sycl-2017-compat -fsyntax-only %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fcxx-exceptions -verify -fsyntax-only %s
22

33
// Check that a function used in an unevaluated context is not subject
44
// to delayed device diagnostics.

clang/test/SemaSYCL/unsupported_math.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -Wno-sycl-2017-compat -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s
22
template <typename name, typename Func>
33
__attribute__((sycl_kernel)) void kernel(const Func &kernelFunc) {
44
kernelFunc();

clang/test/SemaSYCL/variadic-func-call.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -fsyntax-only -Wno-sycl-2017-compat -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -fsyntax-only -verify %s
22

33
void variadic(int, ...) {}
44
namespace NS {

0 commit comments

Comments
 (0)