1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
11 // template <class charT> charT toupper(charT c, const locale& loc);
16 #include "test_macros.h"
21 assert(std::toupper(' ', l
) == ' ');
22 assert(std::toupper('<', l
) == '<');
23 assert(std::toupper('\x8', l
) == '\x8');
24 assert(std::toupper('A', l
) == 'A');
25 assert(std::toupper('a', l
) == 'A');
26 assert(std::toupper('z', l
) == 'Z');
27 assert(std::toupper('3', l
) == '3');
28 assert(std::toupper('.', l
) == '.');
29 assert(std::toupper('f', l
) == 'F');
30 assert(std::toupper('9', l
) == '9');
31 assert(std::toupper('+', l
) == '+');