1 // RUN: %clang_cc1 -fdelayed-template-parsing -std=c++14 -emit-pch %s -o %t.pch -verify
2 // RUN: %clang_cc1 -fdelayed-template-parsing -std=c++14 -include-pch %t.pch %s -verify
4 // RUN: %clang_cc1 -fdelayed-template-parsing -std=c++14 -emit-pch -fpch-instantiate-templates %s -o %t.pch -verify
5 // RUN: %clang_cc1 -fdelayed-template-parsing -std=c++14 -include-pch %t.pch %s -verify
7 #ifndef HEADER_INCLUDED
9 #define HEADER_INCLUDED
13 template <typename T
> class Trans_NS_WTF_RefPtr
{
15 ArrayBuffer
*operator->() { return nullptr; }
17 Trans_NS_WTF_RefPtr
<ArrayBuffer
> get();
18 template <typename _Visitor
>
19 constexpr void visit(_Visitor __visitor
) {
20 __visitor(get()); // expected-note {{in instantiation}}
24 visit([](auto buffer
) -> char { // expected-note {{in instantiation}}
26 }); // expected-warning {{non-void lambda does not return a value}}
27 } // expected-warning {{non-void function does not return a value}}
32 // expected-no-diagnostics