Home
last modified time | relevance | path

Searched refs:swallow (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Darray-bounds-ptr-arith.cpp3 void swallow (const char *x) { (void)x; } in swallow() function
8 swallow("Hello world!" + 6); // no-warning in test_pointer_arithmetic()
11 swallow("Hello world!" + 13); // no-warning in test_pointer_arithmetic()
13 swallow(hello + 6); // no-warning in test_pointer_arithmetic()
16 swallow(hello + 13); // no-warning in test_pointer_arithmetic()
18 swallow(helloptr + 6); // no-warning in test_pointer_arithmetic()
19 swallow(helloptr - 6); // no-warning in test_pointer_arithmetic()
20 swallow(helloptr + 14); // no-warning in test_pointer_arithmetic()
21 swallow(helloptr + 13); // no-warning in test_pointer_arithmetic()
24 swallow((char*)numbers + sizeof(double)); // no-warning in test_pointer_arithmetic()
[all …]
/llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dp4.cpp203 void swallow(...);
205 swallow([=] { in f()
222 swallow([]<T *...v, template<T *> typename ...W>(W<v> ...wv) { }); in f()
262 swallow([=] { in nested()
269 swallow([=] { void h(T); }); // expected-error {{unexpanded parameter pack 'T'}} in g()
270 swallow([=] { struct A : T {}; }); // expected-error {{unexpanded parameter pack 'T'}} in g()
272 …swallow([=] { struct A : T... { using T::x; }; }); // expected-error {{unexpanded parameter pack '… in g()
276 swallow([=] { int arr[] = {T().x}; }); // expected-error {{unexpanded parameter pack 'T'}} in g()
278 swallow([=] { f<T>(); }); // expected-error {{unexpanded parameter pack 'T'}} in g()
279 swallow([=] { alignas(T) int y; }); // expected-error {{unexpanded parameter pack 'T'}} in g()
[all …]