1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
14 #include <type_traits>
16 #include "test_macros.h"
18 #if TEST_STD_VER <= 14
19 # ifdef __cpp_lib_void_t
20 # error Feature test macro should not be defined!
23 # ifndef __cpp_lib_void_t
24 # error Feature test macro is not defined
26 # if __cpp_lib_void_t != 201411
27 # error Feature test macro has the wrong value
33 #if defined(__cpp_lib_void_t)
34 static_assert(std::is_same_v<std::void_t<int>, void>, "");