File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ class queue {
80
80
// / \param AsyncHandler is a SYCL asynchronous exception handler.
81
81
// / \param PropList is a list of properties for queue construction.
82
82
explicit queue (const device &SyclDevice, const async_handler &AsyncHandler,
83
- const property_list &PropList = {});
83
+ const property_list &PropList = {});
84
84
85
85
// / Constructs a SYCL queue instance that is associated with the context
86
86
// / provided, using the device returned by the device selector.
Original file line number Diff line number Diff line change 1
1
// RUN: %clangxx -fsyntax-only -Xclang -verify %s -Xclang -verify-ignore-unexpected=note,warning
2
- // ==--------------- ctad .cpp - SYCL vector CTAD fail test ---------------- --==//
2
+ // ==-- implicit_conversion_error .cpp - Unintended implicit conversion check --==//
3
3
//
4
4
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
5
// See https://llvm.org/LICENSE.txt for license information.
6
6
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
7
//
8
- // ===----------------------------------------------------------------------===//
8
+ // ===----------------------------------------------------------------------- ===//
9
9
#include < CL/sycl.hpp>
10
10
11
-
12
11
int main () {
13
12
cl::sycl::queue q;
14
13
cl::sycl::context cxt = q.get_context ();
15
14
cl::sycl::device dev = q.get_device ();
16
15
17
- cl::sycl::context cxt2 { dev };
16
+ cl::sycl::context cxt2{ dev};
18
17
cl::sycl::context cxt3 = dev; // expected-error {{no viable conversion from 'cl::sycl::device' to 'cl::sycl::context'}}
19
18
20
- cl::sycl::queue q2 { dev };
19
+ cl::sycl::queue q2{ dev};
21
20
cl::sycl::queue q3 = dev; // expected-error {{no viable conversion from 'cl::sycl::device' to 'cl::sycl::queue'}}
22
21
}
You can’t perform that action at this time.
0 commit comments