Skip to content

Commit 8d61708

Browse files
author
Chen, Brox
committed
update testt
1 parent 66f6cd6 commit 8d61708

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/test/extensions/annotated_ptr/annotated_ptr.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,11 @@ void TestVectorAddWithAnnotatedMMHosts() {
164164
test(int n_) : n(n_) {}
165165
test(const test &t) { n = t.n; }
166166
};
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!}}
167+
// expected-error-re@sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp:* {{static assertion failed due to requirement {{.+}}: annotated_ptr can only be encapsulated with either trivially-copyable type or void! }}
168168
annotated_ptr<test> non_trivially_copyable;
169169

170+
annotated_ptr<void> void_type;
171+
170172
free(raw, q);
171173
}
172174

0 commit comments

Comments
 (0)