2 // RUN: %clang_cc1 -pedantic -std=c++1y -include %s -verify %s
5 // RUN: %clang_cc1 -pedantic -std=c++1y -emit-pch %s -o %t
6 // RUN: %clang_cc1 -pedantic -std=c++1y -include-pch %t -verify %s
8 // RUN: %clang_cc1 -pedantic -std=c++1y -emit-pch -fpch-instantiate-templates %s -o %t
9 // RUN: %clang_cc1 -pedantic -std=c++1y -include-pch %t -verify %s
14 auto counter
= [a(0)] () mutable { return a
++; };
17 template<typename T
> void f(T t
) {
18 [t(t
)] { int n
= t
; } ();
27 // expected-error@18 {{lvalue of type 'const char *const'}}
28 // expected-note@18 {{substituting into a lambda}}
29 f("foo"); // expected-note {{here}}