diff options
Diffstat (limited to 'libcxx/test/iterators/stream.iterators/iterator.range/begin_array.pass.cpp')
| -rw-r--r-- | libcxx/test/iterators/stream.iterators/iterator.range/begin_array.pass.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/libcxx/test/iterators/stream.iterators/iterator.range/begin_array.pass.cpp b/libcxx/test/iterators/stream.iterators/iterator.range/begin_array.pass.cpp deleted file mode 100644 index 42c8c3dd93da..000000000000 --- a/libcxx/test/iterators/stream.iterators/iterator.range/begin_array.pass.cpp +++ /dev/null @@ -1,24 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// 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. -// -//===----------------------------------------------------------------------===// - -// <iterator> - -// template <class T, size_t N> T* begin(T (&array)[N]); - -#include <iterator> -#include <cassert> - -int main() -{ - int ia[] = {1, 2, 3}; - int* i = std::begin(ia); - assert(*i == 1); - *i = 2; - assert(ia[0] == 2); -} |
