• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // UNSUPPORTED: c++03, c++11, c++14, c++17
9 
10 // <string>
11 
12 // template<> struct char_traits<char8_t>
13 
14 // static constexpr int_type eof();
15 
16 #include <string>
17 #include <cassert>
18 
19 #include "test_macros.h"
20 
main(int,char **)21 int main(int, char**)
22 {
23 #if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L
24     std::char_traits<char8_t>::int_type i = std::char_traits<char8_t>::eof();
25     ((void)i); // Prevent unused warning
26 #endif
27 
28   return 0;
29 }
30