Skip to content

Commit f5399c3

Browse files
author
Chen, Brox
committed
update test
1 parent 4059a47 commit f5399c3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

sycl/include/sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,10 @@ __SYCL_TYPE(annotated_ptr) annotated_ptr<T, detail::properties_t<Props...>> {
238238
annotated_ptr(const annotated_ptr &) = default;
239239
annotated_ptr &operator=(const annotated_ptr &) = default;
240240

241-
static_assert(std::is_same_v<T, void> || std::is_trivially_copyable_v<T>,
242-
"encapsulating annotated_ptr with non-trivially-copyable is "
243-
"not supported!");
241+
static_assert(
242+
std::is_same_v<T, void> || std::is_trivially_copyable_v<T>,
243+
"encapsulating annotated_ptr with non-trivially-copyable type is "
244+
"not supported!");
244245

245246
explicit annotated_ptr(T *Ptr,
246247
const property_list_t & = properties{}) noexcept

sycl/test/extensions/annotated_ptr/annotated_ptr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void TestVectorAddWithAnnotatedMMHosts() {
164164
test(int n_) : n(n_) {}
165165
test(const test &t) { n = t.n; }
166166
};
167-
// expected-error-re@+1 {{{{.+}}encapsulating annotated_ptr with non-trivially-copyable is not supported!}}
167+
// expected-error-re@sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp:* {{static assertion failed due to requirement {{.+}}: encapsulating annotated_ptr with non-trivially-copyable type is not supported!}}
168168
annotated_ptr<test> non_trivially_copyable;
169169

170170
free(raw, q);

0 commit comments

Comments
 (0)