[libcxx] r344421 - One more local type warning removed from the tests. NFC

Marshall Clow mclow.lists at gmail.com
Fri Oct 12 14:59:32 PDT 2018


Author: marshall
Date: Fri Oct 12 14:59:32 2018
New Revision: 344421

URL: http://llvm.org/viewvc/llvm-project?rev=344421&view=rev
Log:
One more local type warning removed from the tests. NFC

Modified:
    libcxx/trunk/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp

Modified: libcxx/trunk/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp?rev=344421&r1=344420&r2=344421&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp Fri Oct 12 14:59:32 2018
@@ -44,6 +44,18 @@ constexpr bool test_constexpr() {
     }
 #endif
 
+
+struct S {
+  S(int i) : i_(i) {}
+  bool operator==(const S& other) = delete;
+  int i_;
+};
+
+struct eq {
+  bool operator()(const S& a, const S&b) { return a.i_ == b.i_; }
+};
+
+
 int main()
 {
     {
@@ -739,14 +751,6 @@ int main()
 #endif
     }
     {
-      struct S {
-          S(int i) : i_(i) {}
-          bool operator==(const S& other) = delete;
-          int i_;
-      };
-      struct eq {
-          bool operator()(const S& a, const S&b) { return a.i_ == b.i_; }
-      };
       const S a[] = {S(0), S(1)};
       const S b[] = {S(1), S(0)};
       const unsigned sa = sizeof(a)/sizeof(a[0]);




More information about the libcxx-commits mailing list