1//===----------------------------------------------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is dual licensed under the MIT and the University of Illinois Open 6// Source Licenses. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10// <locale> 11 12// template <class charT> charT tolower(charT c, const locale& loc); 13 14#include <locale> 15#include <cassert> 16 17int main() 18{ 19 std::locale l; 20 assert(std::tolower(' ', l) == ' '); 21 assert(std::tolower('<', l) == '<'); 22 assert(std::tolower('\x8', l) == '\x8'); 23 assert(std::tolower('A', l) == 'a'); 24 assert(std::tolower('a', l) == 'a'); 25 assert(std::tolower('z', l) == 'z'); 26 assert(std::tolower('3', l) == '3'); 27 assert(std::tolower('.', l) == '.'); 28 assert(std::tolower('f', l) == 'f'); 29 assert(std::tolower('9', l) == '9'); 30 assert(std::tolower('+', l) == '+'); 31} 32