[cfe-commits] [libcxx] r113099 - in /libcxx/trunk/test/utilities/utility/pairs: pairs.pair/comparison.pass.cpp pairs.pair/make_pair.pass.cpp pairs.pair/non_member_swap.pass.cpp pairs.spec/ pairs.spec/comparison.pass.cpp pairs.spec/make_pair.pass.cpp pairs.spec/non_member_swap.pass.cpp

Howard Hinnant hhinnant at apple.com
Sat Sep 4 18:06:34 PDT 2010


Author: hhinnant
Date: Sat Sep  4 20:06:34 2010
New Revision: 113099

URL: http://llvm.org/viewvc/llvm-project?rev=113099&view=rev
Log:
sync with N3126

Added:
    libcxx/trunk/test/utilities/utility/pairs/pairs.spec/
    libcxx/trunk/test/utilities/utility/pairs/pairs.spec/comparison.pass.cpp
      - copied unchanged from r112722, libcxx/trunk/test/utilities/utility/pairs/pairs.pair/comparison.pass.cpp
    libcxx/trunk/test/utilities/utility/pairs/pairs.spec/make_pair.pass.cpp
      - copied unchanged from r113086, libcxx/trunk/test/utilities/utility/pairs/pairs.pair/make_pair.pass.cpp
    libcxx/trunk/test/utilities/utility/pairs/pairs.spec/non_member_swap.pass.cpp
      - copied unchanged from r112722, libcxx/trunk/test/utilities/utility/pairs/pairs.pair/non_member_swap.pass.cpp
Removed:
    libcxx/trunk/test/utilities/utility/pairs/pairs.pair/comparison.pass.cpp
    libcxx/trunk/test/utilities/utility/pairs/pairs.pair/make_pair.pass.cpp
    libcxx/trunk/test/utilities/utility/pairs/pairs.pair/non_member_swap.pass.cpp

Removed: libcxx/trunk/test/utilities/utility/pairs/pairs.pair/comparison.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/utility/pairs/pairs.pair/comparison.pass.cpp?rev=113098&view=auto
==============================================================================
--- libcxx/trunk/test/utilities/utility/pairs/pairs.pair/comparison.pass.cpp (original)
+++ libcxx/trunk/test/utilities/utility/pairs/pairs.pair/comparison.pass.cpp (removed)
@@ -1,81 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <utility>
-
-// template <class T1, class T2> struct pair
-
-// template <class T1, class T2> bool operator==(const pair<T1,T2>&, const pair<T1,T2>&);
-// template <class T1, class T2> bool operator!=(const pair<T1,T2>&, const pair<T1,T2>&);
-// template <class T1, class T2> bool operator< (const pair<T1,T2>&, const pair<T1,T2>&);
-// template <class T1, class T2> bool operator> (const pair<T1,T2>&, const pair<T1,T2>&);
-// template <class T1, class T2> bool operator>=(const pair<T1,T2>&, const pair<T1,T2>&);
-// template <class T1, class T2> bool operator<=(const pair<T1,T2>&, const pair<T1,T2>&);
-
-#include <utility>
-#include <cassert>
-
-int main()
-{
-    {
-        typedef std::pair<int, short> P;
-        P p1(3, 4);
-        P p2(3, 4);
-        assert( (p1 == p2));
-        assert(!(p1 != p2));
-        assert(!(p1 <  p2));
-        assert( (p1 <= p2));
-        assert(!(p1 >  p2));
-        assert( (p1 >= p2));
-    }
-    {
-        typedef std::pair<int, short> P;
-        P p1(2, 4);
-        P p2(3, 4);
-        assert(!(p1 == p2));
-        assert( (p1 != p2));
-        assert( (p1 <  p2));
-        assert( (p1 <= p2));
-        assert(!(p1 >  p2));
-        assert(!(p1 >= p2));
-    }
-    {
-        typedef std::pair<int, short> P;
-        P p1(3, 2);
-        P p2(3, 4);
-        assert(!(p1 == p2));
-        assert( (p1 != p2));
-        assert( (p1 <  p2));
-        assert( (p1 <= p2));
-        assert(!(p1 >  p2));
-        assert(!(p1 >= p2));
-    }
-    {
-        typedef std::pair<int, short> P;
-        P p1(3, 4);
-        P p2(2, 4);
-        assert(!(p1 == p2));
-        assert( (p1 != p2));
-        assert(!(p1 <  p2));
-        assert(!(p1 <= p2));
-        assert( (p1 >  p2));
-        assert( (p1 >= p2));
-    }
-    {
-        typedef std::pair<int, short> P;
-        P p1(3, 4);
-        P p2(3, 2);
-        assert(!(p1 == p2));
-        assert( (p1 != p2));
-        assert(!(p1 <  p2));
-        assert(!(p1 <= p2));
-        assert( (p1 >  p2));
-        assert( (p1 >= p2));
-    }
-}

Removed: libcxx/trunk/test/utilities/utility/pairs/pairs.pair/make_pair.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/utility/pairs/pairs.pair/make_pair.pass.cpp?rev=113098&view=auto
==============================================================================
--- libcxx/trunk/test/utilities/utility/pairs/pairs.pair/make_pair.pass.cpp (original)
+++ libcxx/trunk/test/utilities/utility/pairs/pairs.pair/make_pair.pass.cpp (removed)
@@ -1,40 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <utility>
-
-// template <class T1, class T2> pair<V1, V2> make_pair(T1&&, T2&&);
-
-#include <utility>
-#include <memory>
-#include <cassert>
-
-int main()
-{
-    {
-        typedef std::pair<int, short> P1;
-        P1 p1 = std::make_pair(3, 4);
-        assert(p1.first == 3);
-        assert(p1.second == 4);
-    }
-#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
-    {
-        typedef std::pair<std::unique_ptr<int>, short> P1;
-        P1 p1 = std::make_pair(std::unique_ptr<int>(new int(3)), 4);
-        assert(*p1.first == 3);
-        assert(p1.second == 4);
-    }
-    {
-        typedef std::pair<std::unique_ptr<int>, short> P1;
-        P1 p1 = std::make_pair(nullptr, 4);
-        assert(p1.first == nullptr);
-        assert(p1.second == 4);
-    }
-#endif  // _LIBCPP_HAS_NO_RVALUE_REFERENCES
-}

Removed: libcxx/trunk/test/utilities/utility/pairs/pairs.pair/non_member_swap.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/utility/pairs/pairs.pair/non_member_swap.pass.cpp?rev=113098&view=auto
==============================================================================
--- libcxx/trunk/test/utilities/utility/pairs/pairs.pair/non_member_swap.pass.cpp (original)
+++ libcxx/trunk/test/utilities/utility/pairs/pairs.pair/non_member_swap.pass.cpp (removed)
@@ -1,31 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <utility>
-
-// template <class T1, class T2> struct pair
-
-// template <class T1, class T2> void swap(pair<T1, T2>& x, pair<T1, T2>& y);
-
-#include <utility>
-#include <cassert>
-
-int main()
-{
-    {
-        typedef std::pair<int, short> P1;
-        P1 p1(3, 4);
-        P1 p2(5, 6);
-        swap(p1, p2);
-        assert(p1.first == 5);
-        assert(p1.second == 6);
-        assert(p2.first == 3);
-        assert(p2.second == 4);
-    }
-}





More information about the cfe-commits mailing list