Move test from r222476 to a better place; this was reduced to the point that it

no longer contained a generic lambda.

llvm-svn: 222477
This commit is contained in:
Richard Smith 2014-11-20 23:00:25 +00:00
parent 069ecf65e5
commit 4764e9bf79
2 changed files with 7 additions and 7 deletions

View File

@ -918,10 +918,3 @@ int run2 = x2.fooG3();
} //end ns inclass_lambdas_within_nested_classes
namespace lambda_in_default_mem_init {
template<typename T> void f() {
struct S { int n = []{ return 0; }(); };
}
template void f<int>();
}

View File

@ -413,3 +413,10 @@ template <typename T> void p(T t) {
void q() { p(0); }
// expected-note@-1 {{in instantiation of function template specialization 'PR20731::p<int>' requested here}}
}
namespace lambda_in_default_mem_init {
template<typename T> void f() {
struct S { int n = []{ return 0; }(); };
}
template void f<int>();
}