diff options
Diffstat (limited to 'libcxx/test')
-rw-r--r-- | libcxx/test/support/nothing_to_do.pass.cpp | 13 | ||||
-rw-r--r-- | libcxx/test/support/test_iterators.h | 2 |
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; |