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