From: Richard Smith Date: Thu, 20 Nov 2014 23:00:25 +0000 (+0000) Subject: Move test from r222476 to a better place; this was reduced to the point that it X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bc2ada0fe3759412fc73caf4346de293931306c;p=clang Move test from r222476 to a better place; this was reduced to the point that it no longer contained a generic lambda. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222477 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/cxx1y-generic-lambdas.cpp b/test/SemaCXX/cxx1y-generic-lambdas.cpp index f3aae219a4..8e07b806b1 100644 --- a/test/SemaCXX/cxx1y-generic-lambdas.cpp +++ b/test/SemaCXX/cxx1y-generic-lambdas.cpp @@ -918,10 +918,3 @@ int run2 = x2.fooG3(); } //end ns inclass_lambdas_within_nested_classes - -namespace lambda_in_default_mem_init { - template void f() { - struct S { int n = []{ return 0; }(); }; - } - template void f(); -} diff --git a/test/SemaCXX/lambda-expressions.cpp b/test/SemaCXX/lambda-expressions.cpp index d0fe0580c9..29dffc4f6e 100644 --- a/test/SemaCXX/lambda-expressions.cpp +++ b/test/SemaCXX/lambda-expressions.cpp @@ -413,3 +413,10 @@ template void p(T t) { void q() { p(0); } // expected-note@-1 {{in instantiation of function template specialization 'PR20731::p' requested here}} } + +namespace lambda_in_default_mem_init { + template void f() { + struct S { int n = []{ return 0; }(); }; + } + template void f(); +}