state.pass.cpp revision 4b53f508efcd857b2dddeff092a8509def5bc6bd
1//===----------------------------------------------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10// <locale> 11 12// wbuffer_convert<Codecvt, Elem, Tr> 13 14// state_type state() const; 15 16#include <locale> 17#include <codecvt> 18#include <sstream> 19#include <cassert> 20 21int main() 22{ 23 typedef std::wbuffer_convert<std::codecvt_utf8<wchar_t> > B; 24 { 25 B b; 26 std::mbstate_t s = b.state(); 27 } 28} 29