diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-10-12 21:59:32 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-10-12 21:59:32 +0000 |
commit | d85038871014e75abe4e1c3a1b419ef19b0d048e (patch) | |
tree | ba2a3bcc499729e5777f74ffaa555f686d783c2e /libcxx/test/std/algorithms/alg.nonmodifying | |
parent | 16aec506aefc8b221648e6c547117b064a97e215 (diff) | |
download | bcm5719-llvm-d85038871014e75abe4e1c3a1b419ef19b0d048e.tar.gz bcm5719-llvm-d85038871014e75abe4e1c3a1b419ef19b0d048e.zip |
One more local type warning removed from the tests. NFC
llvm-svn: 344421
Diffstat (limited to 'libcxx/test/std/algorithms/alg.nonmodifying')
-rw-r--r-- | libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred.pass.cpp | 20 |
1 files 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 12bd938d296..cbf87c6c2a8 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]); |