brintos

brintos / llvm-project-archived public Read only

0
0
Text · 950 B · d0e6420 Raw
48 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: no-localization10 11// <locale.h>12 13#include <locale.h>14 15#include "test_macros.h"16 17#ifndef LC_ALL18#error LC_ALL not defined19#endif20 21#ifndef LC_COLLATE22#error LC_COLLATE not defined23#endif24 25#ifndef LC_CTYPE26#error LC_CTYPE not defined27#endif28 29#ifndef LC_MONETARY30#error LC_MONETARY not defined31#endif32 33#ifndef LC_NUMERIC34#error LC_NUMERIC not defined35#endif36 37#ifndef LC_TIME38#error LC_TIME not defined39#endif40 41#ifndef NULL42#error NULL not defined43#endif44 45lconv lc;46ASSERT_SAME_TYPE(char*,  decltype(setlocale(0, "")));47ASSERT_SAME_TYPE(lconv*, decltype(localeconv()));48