Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / localization / locales / locale.convenience / classification / isupper.pass.cpp
blob297207a483bb6a42594a03270df1d17ba2e8a6e1
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 isupper (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::isupper(' ', l));
22 assert(!std::isupper('<', l));
23 assert(!std::isupper('\x8', l));
24 assert( std::isupper('A', l));
25 assert(!std::isupper('a', l));
26 assert(!std::isupper('z', l));
27 assert(!std::isupper('3', l));
28 assert(!std::isupper('.', l));
29 assert(!std::isupper('f', l));
30 assert(!std::isupper('9', l));
31 assert(!std::isupper('+', l));
33 return 0;