r196723 - Move a generic lambda test into the more logical test file.

Faisal Vali faisalv at yahoo.com
Sun Dec 8 07:11:48 PST 2013


Author: faisalv
Date: Sun Dec  8 09:11:48 2013
New Revision: 196723

URL: http://llvm.org/viewvc/llvm-project?rev=196723&view=rev
Log:
Move a generic lambda test into the more logical test file.

Modified:
    cfe/trunk/test/SemaCXX/cxx1y-generic-lambdas.cpp
    cfe/trunk/test/SemaCXX/cxx1y-init-captures.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=196723&r1=196722&r2=196723&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx1y-generic-lambdas.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx1y-generic-lambdas.cpp Sun Dec  8 09:11:48 2013
@@ -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; };

Modified: cfe/trunk/test/SemaCXX/cxx1y-init-captures.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx1y-init-captures.cpp?rev=196723&r1=196722&r2=196723&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx1y-init-captures.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx1y-init-captures.cpp Sun Dec  8 09:11:48 2013
@@ -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 {
 





More information about the cfe-commits mailing list