summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorMarshall Clow <mclow@qualcomm.com>2013-01-09 17:20:02 +0000
committerMarshall Clow <mclow@qualcomm.com>2013-01-09 17:20:02 +0000
commit4476100a2f3d932f036453498e25caeefde26b8a (patch)
treed4893fc345d51e236455ebba00305a79a9588e9f /libcxx
parent1ae2248e140fa52193b6f8bc5391ffecf16136ce (diff)
downloadbcm5719-llvm-4476100a2f3d932f036453498e25caeefde26b8a.tar.gz
bcm5719-llvm-4476100a2f3d932f036453498e25caeefde26b8a.zip
Made test output iterators have value_type of 'void'; matches ones in library
llvm-svn: 171980
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/support/nothing_to_do.pass.cpp13
-rw-r--r--libcxx/test/support/test_iterators.h2
2 files changed, 14 insertions, 1 deletions
diff --git a/libcxx/test/support/nothing_to_do.pass.cpp b/libcxx/test/support/nothing_to_do.pass.cpp
new file mode 100644
index 00000000000..9a59227abdd
--- /dev/null
+++ b/libcxx/test/support/nothing_to_do.pass.cpp
@@ -0,0 +1,13 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+int main()
+{
+}
diff --git a/libcxx/test/support/test_iterators.h b/libcxx/test/support/test_iterators.h
index 6b3d3d1610c..5a7916c4110 100644
--- a/libcxx/test/support/test_iterators.h
+++ b/libcxx/test/support/test_iterators.h
@@ -11,7 +11,7 @@ class output_iterator
template <class U> friend class output_iterator;
public:
typedef std::output_iterator_tag iterator_category;
- typedef typename std::iterator_traits<It>::value_type value_type;
+ typedef void value_type;
typedef typename std::iterator_traits<It>::difference_type difference_type;
typedef It pointer;
typedef typename std::iterator_traits<It>::reference reference;
OpenPOWER on IntegriCloud