forked from OSchip/llvm-project
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:
parent
069ecf65e5
commit
4764e9bf79
|
@ -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>();
|
||||
}
|
||||
|
|
|
@ -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>();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue