]> granicus.if.org Git - clang/commitdiff
Move a generic lambda test into the more logical test file.
authorFaisal Vali <faisalv@yahoo.com>
Sun, 8 Dec 2013 15:11:48 +0000 (15:11 +0000)
committerFaisal Vali <faisalv@yahoo.com>
Sun, 8 Dec 2013 15:11:48 +0000 (15:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196723 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/cxx1y-generic-lambdas.cpp
test/SemaCXX/cxx1y-init-captures.cpp

index 20e06f48a1ce3fc79109d695e17817e23a4de8d2..2146a374e12f9752428c8e1d480587b3d8e02c43 100644 (file)
@@ -3,6 +3,14 @@
 // RUN: %clang_cc1 -std=c++1y -verify -fsyntax-only -fblocks -fms-extensions %s -DMS_EXTENSIONS
 // RUN: %clang_cc1 -std=c++1y -verify -fsyntax-only -fblocks -fdelayed-template-parsing -fms-extensions %s -DMS_EXTENSIONS -DDELAYED_TEMPLATE_PARSING
 
+namespace simple_explicit_capture {
+  void test() {
+    int i;
+    auto L = [i](auto a) { return i + a; };
+    L(3.14);
+  }
+}
+
 namespace explicit_call {
 int test() {
   auto L = [](auto a) { return a; };
index 046773f6113d6dfab6dc48ea9ba8b3a5a587ec0c..64fe50a70e7847ffa4eeb537a623b59c8fda4c49 100644 (file)
@@ -32,13 +32,6 @@ namespace variadic_expansion {
 
   void h(int i, char c) { g(i, c); } //expected-note{{in instantiation}}
 }
-namespace simple_init_captures {
-  void test() {
-    int i;
-    auto L = [i](auto a) { return i + a; };
-    L(3.14);
-  }
-}
 
 namespace odr_use_within_init_capture {