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

Richard Smith richard-llvm at metafoo.co.uk
Thu Nov 20 15:00:25 PST 2014


Author: rsmith
Date: Thu Nov 20 17:00:25 2014
New Revision: 222477

URL: http://llvm.org/viewvc/llvm-project?rev=222477&view=rev
Log:
Move test from r222476 to a better place; this was reduced to the point that it
no longer contained a generic lambda.

Modified:
    cfe/trunk/test/SemaCXX/cxx1y-generic-lambdas.cpp
    cfe/trunk/test/SemaCXX/lambda-expressions.cpp

Modified: cfe/trunk/test/SemaCXX/cxx1y-generic-lambdas.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx1y-generic-lambdas.cpp?rev=222477&r1=222476&r2=222477&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx1y-generic-lambdas.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx1y-generic-lambdas.cpp Thu Nov 20 17:00:25 2014
@@ -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>();
-}

Modified: cfe/trunk/test/SemaCXX/lambda-expressions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/lambda-expressions.cpp?rev=222477&r1=222476&r2=222477&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/lambda-expressions.cpp (original)
+++ cfe/trunk/test/SemaCXX/lambda-expressions.cpp Thu Nov 20 17:00:25 2014
@@ -413,3 +413,10 @@ template <typename T> void p(T t) {
 void q() { p(0); }
 // expected-note at -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>();
+}





More information about the cfe-commits mailing list