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 //===----------------------------------------------------------------------===//
13 #include <type_traits>
16 #error LC_ALL not defined
20 #error LC_COLLATE not defined
24 #error LC_CTYPE not defined
28 #error LC_MONETARY not defined
32 #error LC_NUMERIC not defined
36 #error LC_TIME not defined
40 #error NULL not defined
46 static_assert((std::is_same
<__typeof__(std::setlocale(0, "")), char*>::value
), "");
47 static_assert((std::is_same
<__typeof__(std::localeconv()), std::lconv
*>::value
), "");