]> granicus.if.org Git - clang/commitdiff
Move test from r222476 to a better place; this was reduced to the point that it
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Nov 2014 23:00:25 +0000 (23:00 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Nov 2014 23:00:25 +0000 (23:00 +0000)
no longer contained a generic lambda.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222477 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/cxx1y-generic-lambdas.cpp
test/SemaCXX/lambda-expressions.cpp

index f3aae219a4639d1a2e2ff76e93bdef8b94b96dd9..8e07b806b1c07d0b79dd2953fad62aab9480b469 100644 (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>();
-}
index d0fe0580c91edc007dc57b6b06e5b2f22236f174..29dffc4f6e87cc132cd028862e49c019358c4faf 100644 (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>();
+}