[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / localization / locales / locale.convenience / classification / isblank.pass.cpp
blob2a5cc19b3c5ed33300cf9aa60bf44a44f1ed1b9b
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-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // <locale>
11 // template <class charT> bool isblank (charT c, const locale& loc);
13 #include <locale>
14 #include <cassert>
16 #include "test_macros.h"
18 int main(int, char**) {
19 std::locale l;
20 assert(std::isblank(' ', l));
21 assert(!std::isblank('<', l));
22 assert(!std::isblank('\x8', l));
23 assert(!std::isblank('A', l));
24 assert(!std::isblank('a', l));
25 assert(!std::isblank('z', l));
26 assert(!std::isblank('3', l));
27 assert(!std::isblank('.', l));
28 assert(!std::isblank('f', l));
29 assert(!std::isblank('9', l));
30 assert(!std::isblank('+', l));
32 return 0;