summaryrefslogtreecommitdiffstats
path: root/test/localization/locales/locale.convenience/classification/isgraph.pass.cpp
blob: 03a19c4f9b25e5a837c72f74993bae441f771609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//===----------------------------------------------------------------------===//
//
// ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊThe LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// <locale>

// template <class charT> bool isgraph (charT c, const locale& loc);

#include <locale>
#include <cassert>

int main()
{
    std::locale l;
    assert(!std::isgraph(' ', l));
    assert( std::isgraph('<', l));
    assert(!std::isgraph('\x8', l));
    assert( std::isgraph('A', l));
    assert( std::isgraph('a', l));
    assert( std::isgraph('z', l));
    assert( std::isgraph('3', l));
    assert( std::isgraph('.', l));
    assert( std::isgraph('f', l));
    assert( std::isgraph('9', l));
    assert( std::isgraph('+', l));
}