• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
10 
11 // <string>
12 
13 // template<> struct char_traits<char8_t>
14 
15 // static constexpr int_type eof();
16 
17 #include <string>
18 #include <cassert>
19 
main()20 int main()
21 {
22 #if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L
23     std::char_traits<char8_t>::int_type i = std::char_traits<char8_t>::eof();
24     ((void)i); // Prevent unused warning
25 #endif
26 }
27