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.

llvm-svn: 222477

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

index f3aae21..8e07b80 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 d0fe058..29dffc4 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>();
+}