Skip to content

Commit 81ca325

Browse files
committed
[SYCL][NFC] Use -fsyntax-only more extensively in LIT tests
Adjusted LIT tests to use syntax-only mode for some tests which perform full compilation and linking or only compilation (`-c`) to speed up those tests. Also removed `-o` option from some existing `-fsyntax-only` mode to shorten `RUN` lines, because it is anyway ignored by the compiler.
1 parent ad86982 commit 81ca325

Some content is hidden

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

43 files changed

+98
-91
lines changed

sycl/test/basic_tests/accessor/accessor_property_list_ct.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22

33
#include <sycl/sycl.hpp>
44

sycl/test/basic_tests/accessor/addrspace_exposure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22
//==------- addrspace_exposure.cpp - SYCL accessor AS exposure test --------==//
33
//
44
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/basic_tests/accessor/atomic_zero_dimension_accessor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsyntax-only %s -o %t.out
2-
// RUN: %clangxx -fsycl -fsyntax-only -fsycl-targets=spir64_fpga %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
2+
// RUN: %clangxx -fsycl -fsyntax-only -fsycl-targets=spir64_fpga %s
33

44
// When using zero dimension accessors with atomic access we
55
// want to make sure they are compiling correctly on all devices,
@@ -63,4 +63,4 @@ int main(int argc, char *argv[]) {
6363
std::cout << std::endl;
6464

6565
return 0;
66-
}
66+
}

sycl/test/basic_tests/atomic-ref-instantiation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify %s -o %t.out -Xclang -verify-ignore-unexpected=note
1+
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify %s -Xclang -verify-ignore-unexpected=note
22
// expected-no-diagnostics
33
#include <sycl/atomic_ref.hpp>
44

sycl/test/basic_tests/cl_sycl_hpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -c -o %t.o
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22

33
#include <CL/sycl.hpp>
44

sycl/test/basic_tests/define_vendors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -c -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22
#include <sycl/sycl.hpp>
33

44
#if !defined(SYCL_IMPLEMENTATION_ONEAPI)

sycl/test/basic_tests/generic_type_traits.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22

33
#include <cassert>
44
#include <iostream>

sycl/test/basic_tests/interop-cuda.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// REQUIRES: cuda
2-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s -o %t.out
3-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note -D__SYCL_INTERNAL_API %s -o %t.out
2+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
3+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note -D__SYCL_INTERNAL_API %s
44
//
55
/// Also test the experimental CUDA interop interface
6-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note -DSYCL_EXT_ONEAPI_BACKEND_CUDA_EXPERIMENTAL %s -o %t.out
7-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note -D__SYCL_INTERNAL_API -DSYCL_EXT_ONEAPI_BACKEND_CUDA_EXPERIMENTAL %s -o %t.out
6+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note -DSYCL_EXT_ONEAPI_BACKEND_CUDA_EXPERIMENTAL %s
7+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note -D__SYCL_INTERNAL_API -DSYCL_EXT_ONEAPI_BACKEND_CUDA_EXPERIMENTAL %s
88
// expected-no-diagnostics
99

1010
// Test for legacy and experimental CUDA interop API

sycl/test/basic_tests/interop-hip.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: hip_be
2-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s -o %t.out
3-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note -D__SYCL_INTERNAL_API %s -o %t.out
2+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
3+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note -D__SYCL_INTERNAL_API %s
44
// expected-no-diagnostics
55

66
// Test for HIP interop API

sycl/test/basic_tests/interop-level-zero-2020.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s -o %t.out
2-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note -D__SYCL_INTERNAL_API %s -o %t.out
1+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
2+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note -D__SYCL_INTERNAL_API %s
33

44
// Test for SYCL-2020 Level Zero interop API
55

sycl/test/basic_tests/kernel_size_mismatch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning -o - %s
1+
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning %s
22

33
// Tests for static assertion failure when kernel lambda mismatches between host
44
// and device.

sycl/test/basic_tests/parallel_for_user_types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s -c -o %t.o
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22

33
// This test performs basic check of supporting user defined class that are
44
// implicitly converted from sycl::item/sycl::nd_item in parallel_for.

sycl/test/basic_tests/queue/queue_offset_shortcut_initlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsyntax-only %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22
//=---queue_offset_shortcut_initlist.cpp - SYCL queue offset shortcuts test--=//
33
//
44
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/basic_tests/queue/queue_parallel_for_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsyntax-only %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22

33
//==- queue_parallel_for_generic.cpp - SYCL queue parallel_for interface test -=//
44
//

sycl/test/basic_tests/single_task_error_message.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note -o - %s
1+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
22
#include <iostream>
33
#include <sycl/sycl.hpp>
44
int main() {

sycl/test/basic_tests/stdcpp_compat.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %clangxx -std=c++14 -fsycl -Wall -pedantic -Wno-c99-extensions -Wno-deprecated -fsyntax-only -Xclang -verify-ignore-unexpected=error,note,warning -Xclang -verify=expected,cxx14 %s -c -o %t.out
2-
// RUN: %clangxx -std=c++14 -fsycl -Wall -pedantic -Wno-c99-extensions -Wno-deprecated -fsyntax-only -Xclang -verify-ignore-unexpected=error,note,warning -Xclang -verify=cxx14,warning_extension,expected %s -c -o %t.out
3-
// RUN: %clangxx -std=c++17 -fsycl -Wall -pedantic -Wno-c99-extensions -Wno-deprecated -fsyntax-only -Xclang -verify %s -c -o %t.out
4-
// RUN: %clangxx -std=c++20 -fsycl -Wall -pedantic -Wno-c99-extensions -Wno-deprecated -fsyntax-only -Xclang -verify %s -c -o %t.out
5-
// RUN: %clangxx -fsycl -Wall -pedantic -Wno-c99-extensions -Wno-deprecated -fsyntax-only -Xclang -verify %s -c -o %t.out
1+
// RUN: %clangxx -std=c++14 -fsycl -Wall -pedantic -Wno-c99-extensions -Wno-deprecated -fsyntax-only -Xclang -verify-ignore-unexpected=error,note,warning -Xclang -verify=expected,cxx14 %s
2+
// RUN: %clangxx -std=c++14 -fsycl -Wall -pedantic -Wno-c99-extensions -Wno-deprecated -fsyntax-only -Xclang -verify-ignore-unexpected=error,note,warning -Xclang -verify=cxx14,warning_extension,expected %s
3+
// RUN: %clangxx -std=c++17 -fsycl -Wall -pedantic -Wno-c99-extensions -Wno-deprecated -fsyntax-only -Xclang -verify %s
4+
// RUN: %clangxx -std=c++20 -fsycl -Wall -pedantic -Wno-c99-extensions -Wno-deprecated -fsyntax-only -Xclang -verify %s
5+
// RUN: %clangxx -fsycl -Wall -pedantic -Wno-c99-extensions -Wno-deprecated -fsyntax-only -Xclang -verify %s
66

77
// The test checks SYCL headers C++ compiance and that a warning is emitted
88
// when compiling in < C++17 mode.

sycl/test/basic_tests/stream/byte.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning %s
22
// expected-error@sycl/stream.hpp:* {{Convert the byte to a numeric value using std::to_integer}}
33

44
#include <sycl/sycl.hpp>

sycl/test/basic_tests/version.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22

33
#include <sycl/sycl.hpp>
44

sycl/test/extensions/fpga.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22

33
#include <sycl/ext/intel/fpga_extensions.hpp>
44
#include <sycl/sycl.hpp>

sycl/test/extensions/inline_asm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This is a basic acceptance test for inline ASM feature. More tests can be
22
// found in https://github.com/intel/llvm-test-suite/tree/intel/SYCL/InlineAsm
3-
// RUN: %clangxx -fsycl %s -o %t.out
3+
// RUN: %clangxx -fsycl -fsyntax-only %s
44

55
#include <cmath>
66
#include <iostream>

sycl/test/extensions/macro.cpp

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
// This test checks presence of macros for available extensions.
2-
// RUN: %clangxx -fsycl %s -o %t.out
3-
// RUN: %t.out
2+
// RUN: %clangxx -fsycl -fsyntax-only %s
43

5-
#include <iostream>
64
#include <sycl/sycl.hpp>
7-
int main() {
5+
86
#if SYCL_BACKEND_OPENCL == 1
9-
std::cout << "SYCL_BACKEND_OPENCL=1" << std::endl;
7+
constexpr bool backend_opencl_macro_defined = true;
108
#else
11-
std::cerr << "SYCL_BACKEND_OPENCL!=1" << std::endl;
12-
exit(1);
9+
constexpr bool backend_opencl_macro_defined = false;
1310
#endif
11+
1412
#if SYCL_EXT_ONEAPI_SUB_GROUP_MASK == 1
15-
std::cout << "SYCL_EXT_ONEAPI_SUB_GROUP_MASK=1" << std::endl;
13+
constexpr bool sub_group_mask_macro_defined = true;
1614
#else
17-
std::cerr << "SYCL_EXT_ONEAPI_SUB_GROUP_MASK!=1" << std::endl;
18-
exit(1);
15+
constexpr bool sub_group_mask_macro_defined = false;
1916
#endif
17+
2018
#if SYCL_EXT_ONEAPI_BACKEND_LEVEL_ZERO == 3
21-
std::cout << "SYCL_EXT_ONEAPI_BACKEND_LEVEL_ZERO=3" << std::endl;
19+
constexpr bool backend_level_zero_macro_defined = true;
2220
#else
23-
std::cerr << "SYCL_EXT_ONEAPI_BACKEND_LEVEL_ZERO!=3" << std::endl;
24-
exit(1);
21+
constexpr bool backend_level_zero_macro_defined = false;
2522
#endif
26-
exit(0);
23+
24+
int main() {
25+
static_assert(backend_opencl_macro_defined);
26+
static_assert(sub_group_mask_macro_defined);
27+
static_assert(backend_level_zero_macro_defined);
28+
29+
return 0;
2730
}

sycl/test/extensions/macro_cuda.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
// This test checks presence of macros for available extensions.
2-
// RUN: %clangxx -fsycl %s -o %t.out
3-
// RUN: %t.out
2+
// RUN: %clangxx -fsycl -fsyntax-only %s
43
// REQUIRES: cuda_be
5-
#include <iostream>
6-
#include <sycl/sycl.hpp>
7-
int main() {
4+
85
#if SYCL_EXT_ONEAPI_BACKEND_CUDA == 1
9-
std::cout << "SYCL_EXT_ONEAPI_BACKEND_CUDA=1" << std::endl;
6+
constexpr bool macro_defined = true;
107
#else
11-
std::cerr << "SYCL_EXT_ONEAPI_BACKEND_CUDA!=1" << std::endl;
12-
exit(1);
8+
constexpr bool macro_defined = false;
139
#endif
14-
exit(0);
10+
11+
#include <sycl/sycl.hpp>
12+
int main() {
13+
static_assert(macro_defined);
14+
15+
return 0;
1516
}
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
// This test checks presence of macros for available extensions.
2-
// RUN: %clangxx -fsycl %s -o %t.out
3-
// RUN: %t.out
2+
// RUN: %clangxx -fsycl -fsyntax-only %s
43
// REQUIRES: esimd_emulator_be
5-
#include <iostream>
4+
65
#include <sycl/sycl.hpp>
7-
int main() {
6+
87
#if SYCL_EXT_INTEL_BACKEND_ESIMD_EMULATOR == 1
9-
std::cout << "SYCL_EXT_INTEL_BACKEND_ESIMD_EMULATOR=1" << std::endl;
8+
constexpr bool macro_deifned = true;
109
#else
11-
std::cerr << "SYCL_EXT_INTEL_BACKEND_ESIMD_EMULATOR!=1" << std::endl;
12-
exit(1);
10+
constexpr bool macro_deifned = false;
1311
#endif
14-
exit(0);
12+
13+
int main() {
14+
static_assert(macro_defined);
15+
16+
return 0;
1517
}

sycl/test/extensions/macro_hip.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
// This test checks presence of macros for available extensions.
2-
// RUN: %clangxx -fsycl %s -o %t.out
3-
// RUN: %t.out
2+
// RUN: %clangxx -fsycl -fsyntax-only %s
43
// REQUIRES: hip_be
5-
#include <iostream>
4+
65
#include <sycl/sycl.hpp>
7-
int main() {
6+
87
#if SYCL_EXT_ONEAPI_BACKEND_HIP == 1
9-
std::cout << "SYCL_EXT_ONEAPI_BACKEND_HIP=1" << std::endl;
8+
constexpr bool macro_defined = true;
109
#else
11-
std::cerr << "SYCL_EXT_ONEAPI_BACKEND_HIP!=1" << std::endl;
12-
exit(1);
10+
constexpr bool macro_defined = false;
1311
#endif
14-
exit(0);
12+
13+
int main() {
14+
static_assert(macro_defined);
15+
16+
return 0;
1517
}

sycl/test/extensions/test_complex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22

33
#define SYCL_EXT_ONEAPI_COMPLEX
44

sycl/test/regression/async_work_group_copy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o -
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22

33
// Test checks for that no compile errors occur for
44
// builtin async_work_group_copy

sycl/test/regression/buffer_from_rvalue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -sycl-std=2020 -Xclang -verify -Xclang -verify-ignore-unexpected=note %s -o %t.out
1+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -sycl-std=2020 -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
22
// expected-no-diagnostics
33

44
#include <sycl/sycl.hpp>

sycl/test/regression/copy-with-unnamed-lambda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsyntax-only %s
22
// The purpose of this test is to check that the following code can be
33
// successfully compiled
44
#include <sycl/sycl.hpp>

sycl/test/regression/half_union.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
2-
// RUN: %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
32

43
#include <sycl/sycl.hpp>
54

sycl/test/regression/headers_conflict.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify %s -o %t.out -Xclang -verify-ignore-unexpected=note,warning
1+
// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify %s -Xclang -verify-ignore-unexpected=note,warning
22
// expected-no-diagnostics
33
//
44
//===----------------------------------------------------------------------===//

sycl/test/regression/multi_ptr_gen_casting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22
//
33
// Tests that casting multi_ptr to and from generic compiles for various
44
// combinations of valid qualifiers.

sycl/test/regression/operator-names.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -c %s -o %t.out -Wno-deprecated -fno-operator-names
1+
// RUN: %clangxx -fsycl -fsyntax-only %s -Wno-deprecated -fno-operator-names
22
//
33
//===----------------------------------------------------------------------===//
44
// This test checks if any SYCL header files use C++ operator name keywords

sycl/test/regression/unnamed-lambda-split-order.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsyntax-only %s
22
#include "sycl.hpp"
33

44
// This validates the case where using a lambda in a kernel in a different order

sycl/test/regression/unnamed-lambda.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clangxx -fsycl -c %s -o %t.temp
2-
// RUN: %clangxx -fsycl -sycl-std=1.2.1 -c %s -o %t.temp
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
2+
// RUN: %clangxx -fsycl -sycl-std=1.2.1 -fsyntax-only %s
33

44
#include "sycl.hpp"
55

sycl/test/type_traits/half_operator_types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22
//==-------------- type_traits.cpp - SYCL type_traits test -----------------==//
33
//
44
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/type_traits/integer_n_bit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22
//==---- integer_n_bit.cpp - SYCL integerNbit type traits test -------------==//
33
//
44
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/type_traits/type_list.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22
//==---------------- type_list.cpp - SYCL type_list test -------------------==//
33
//
44
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/type_traits/type_traits.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
22
//==-------------- type_traits.cpp - SYCL type_traits test -----------------==//
33
//
44
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/warnings/free_function_leader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s -o %t.out
1+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
22

33
#include <sycl/sycl.hpp>
44

sycl/test/warnings/group_local_memory_deprecation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl-device-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s -o %t.out
1+
// RUN: %clangxx -fsycl-device-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
22

33
#include <sycl/sycl.hpp>
44

sycl/test/warnings/interop_task_deprecation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s -o %t.out
1+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
22

33
#include <sycl/sycl.hpp>
44

sycl/test/warnings/run_on_host_intel_deprecation.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s -o %t.out
1+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
22

33
#include <sycl/sycl.hpp>
44

sycl/test/warnings/sycl_2020_deprecations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx %fsycl-host-only -fsyntax-only -ferror-limit=0 -sycl-std=2020 -Xclang -verify -Xclang -verify-ignore-unexpected=note %s -o %t.out
1+
// RUN: %clangxx %fsycl-host-only -fsyntax-only -ferror-limit=0 -sycl-std=2020 -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
22

33
#include <CL/sycl.hpp>
44
#include <sycl/ext/intel/experimental/online_compiler.hpp>

0 commit comments

Comments
 (0)