Skip to content

Commit 6c0da61

Browse files
committed
enable notes
1 parent c724e14 commit 6c0da61

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

sycl/test/extensions/annotated_ptr/annotated_ptr.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsyntax-only -Xclang -verify %s
22

33
#include "sycl/sycl.hpp"
44
#include <sycl/ext/intel/fpga_extensions.hpp>
@@ -111,6 +111,7 @@ void TestVectorAddWithAnnotatedMMHosts() {
111111

112112
// Removed
113113
// Assignment / implicit conversion
114+
// expected-note@sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp:* {{candidate function not viable: no known conversion from 'int *' to 'const annotated_ptr}}
114115
// expected-error@+1 {{no viable overloaded '='}}
115116
a1 = raw;
116117

@@ -164,7 +165,8 @@ void TestVectorAddWithAnnotatedMMHosts() {
164165
test(int n_) : n(n_) {}
165166
test(const test &t) { n = t.n; }
166167
};
167-
// expected-error-re@sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp:* {{static assertion failed due to requirement {{.+}}: annotated_ptr can only encapsulate either a trivially-copyable type or void!}}
168+
// expected-error@sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp:* {{annotated_ptr can only encapsulate either a trivially-copyable type or void!}}
169+
// expected-note@+1 {{in instantiation of template class 'sycl::ext::oneapi::experimental::annotated_ptr<test>'}}
168170
annotated_ptr<test> non_trivially_copyable;
169171

170172
annotated_ptr<void> void_type;
@@ -173,7 +175,13 @@ void TestVectorAddWithAnnotatedMMHosts() {
173175
int a;
174176
};
175177
g g0, g1;
176-
// expected-error-re@*:* {{invalid operands to binary expression {{.+}}}}
178+
// TODO: these notes shouldn't be emitted
179+
// expected-note@sycl/types.hpp:* {{candidate template ignored: could not match 'vec<T, Num>'}}
180+
// expected-note@sycl/types.hpp:* {{candidate template ignored: could not match 'detail::SwizzleOp}}
181+
// expected-note@sycl/types.hpp:* {{candidate template ignored: could not match 'vec<T, Num>'}}
182+
// expected-note@sycl/ext/oneapi/experimental/annotated_arg/annotated_arg.hpp:* {{candidate template ignored: could not match 'annotated_arg<T, PropertyList>'}}
183+
// expected-note@sycl/ext/oneapi/experimental/annotated_arg/annotated_arg.hpp:* {{candidate template ignored: could not match 'annotated_arg<T2, PropertyList2>'}}
184+
// expected-error@+1 {{invalid operands to binary expression}}
177185
auto g2 = g0 + g1;
178186

179187
annotated_ptr gp{&g0};

0 commit comments

Comments
 (0)