//===----------------------------------------------------------------------===// // // 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 codecvt // result unshift(stateT& state, // externT* to, externT* to_end, externT*& to_next) const; // This is pretty much just an "are you breathing" test #include #include #include #include typedef std::codecvt F; int main() { std::locale l = std::locale::classic(); std::vector to(3); const F& f = std::use_facet(l); std::mbstate_t mbs = {0}; F::extern_type* to_next = 0; assert(f.unshift(mbs, to.data(), to.data() + to.size(), to_next) == F::ok); assert(to_next == to.data()); }