From d85038871014e75abe4e1c3a1b419ef19b0d048e Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Fri, 12 Oct 2018 21:59:32 +0000 Subject: [PATCH] One more local type warning removed from the tests. NFC llvm-svn: 344421 --- .../alg.is_permutation/is_permutation_pred.pass.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp index 12bd938..cbf87c6 100644 --- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp +++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp @@ -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]); -- 2.7.4