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 //===----------------------------------------------------------------------===//
8 
9 // <iterator>
10 
11 // struct contiguous_iterator_tag : public random_access_iterator_tag {};
12 
13 // UNSUPPORTED: c++03, c++11, c++14, c++17
14 
15 
16 #include <iterator>
17 #include <type_traits>
18 
19 #include "test_macros.h"
20 
main(int,char **)21 int main(int, char**)
22 {
23     std::contiguous_iterator_tag tag;
24     ((void)tag); // Prevent unused warning
25     static_assert((std::is_base_of<std::random_access_iterator_tag,
26                                    std::contiguous_iterator_tag>::value), "");
27     static_assert((!std::is_base_of<std::output_iterator_tag,
28                                     std::contiguous_iterator_tag>::value), "");
29 
30   return 0;
31 }
32