1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
12 #include <type_traits>
14 #include "test_macros.h"
17 #error LC_ALL not defined
21 #error LC_COLLATE not defined
25 #error LC_CTYPE not defined
29 #error LC_MONETARY not defined
33 #error LC_NUMERIC not defined
37 #error LC_TIME not defined
41 #error NULL not defined
47 ((void)lc
); // Prevent unused warning
48 static_assert((std::is_same
<decltype(std::setlocale(0, "")), char*>::value
), "");
49 static_assert((std::is_same
<decltype(std::localeconv()), std::lconv
*>::value
), "");