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
11 auto counter = [a(0)] () mutable { return a++; };
14 template<typename T> void f(T t) {
15 [t(t)] { int n = t; } ();
24 // expected-error@15 {{lvalue of type 'const char *const'}}
25 f("foo"); // expected-note {{here}}