s/requires/REQUIRES to fix the test on release build
[llvm-project.git] / libcxx / test / std / iterators / predef.iterators / counted.iterator / implicit_ctad.pass.cpp
blob5b4853a783c2fbf8d6b1ca4930fa8e02509114a6
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
11 // counted_iterator
13 // Make sure that the implicitly-generated CTAD works.
15 #include <iterator>
17 #include "test_macros.h"
19 int main(int, char**) {
20 int array[] = {1, 2, 3};
21 int* p = array;
22 std::counted_iterator iter(p, 3);
23 ASSERT_SAME_TYPE(decltype(iter), std::counted_iterator<int*>);
25 return 0;