//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template <> class ctype // const mask* table() const throw(); #include #include int main() { typedef std::ctype F; { std::locale l(std::locale::classic(), new std::ctype); const F& f = std::use_facet(l); assert(f.table() == f.classic_table()); } { std::ctype::mask table[256]; std::locale l(std::locale::classic(), new std::ctype(table)); const F& f = std::use_facet(l); assert(f.table() == table); } }