summaryrefslogtreecommitdiffstats
path: root/libcxx/test/iterators
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2010-05-28 16:53:29 +0000
committerHoward Hinnant <hhinnant@apple.com>2010-05-28 16:53:29 +0000
commita950f39bac867c61317f0bb62e8553ad755fdfd6 (patch)
treec27b1b183e0b1a934c728a9b4b4e3297f9803d84 /libcxx/test/iterators
parentfb85820f9af936051dc4f5b3331fed33c4857610 (diff)
downloadbcm5719-llvm-a950f39bac867c61317f0bb62e8553ad755fdfd6.tar.gz
bcm5719-llvm-a950f39bac867c61317f0bb62e8553ad755fdfd6.zip
Corrected a test bug in reverse_iterator
llvm-svn: 104960
Diffstat (limited to 'libcxx/test/iterators')
-rw-r--r--libcxx/test/iterators/predef.iterators/reverse.iterators/reverse.iterator/types.pass.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libcxx/test/iterators/predef.iterators/reverse.iterators/reverse.iterator/types.pass.cpp b/libcxx/test/iterators/predef.iterators/reverse.iterators/reverse.iterator/types.pass.cpp
index b386126c23d..0748b168e6d 100644
--- a/libcxx/test/iterators/predef.iterators/reverse.iterators/reverse.iterator/types.pass.cpp
+++ b/libcxx/test/iterators/predef.iterators/reverse.iterators/reverse.iterator/types.pass.cpp
@@ -18,11 +18,11 @@
// protected:
// Iter current;
// public:
-// typedef Iter iterator_type;
-// typedef Iter::value_type value_type;
-// typedef Iter::difference_type difference_type;
-// typedef Iter::reference reference;
-// typedef Iter::pointer pointer;
+// iterator<typename iterator_traits<Iterator>::iterator_category,
+// typename iterator_traits<Iterator>::value_type,
+// typename iterator_traits<Iterator>::difference_type,
+// typename iterator_traits<Iterator>::pointer,
+// typename iterator_traits<Iterator>::reference> {
// };
#include <iterator>
@@ -49,7 +49,7 @@ test()
static_assert((std::is_same<typename R::value_type, typename T::value_type>::value), "");
static_assert((std::is_same<typename R::difference_type, typename T::difference_type>::value), "");
static_assert((std::is_same<typename R::reference, typename T::reference>::value), "");
- static_assert((std::is_same<typename R::pointer, It>::value), "");
+ static_assert((std::is_same<typename R::pointer, typename std::iterator_traits<It>::pointer>::value), "");
static_assert((std::is_same<typename R::iterator_category, typename T::iterator_category>::value), "");
}
OpenPOWER on IntegriCloud