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