#include <locale>
#include <sstream>
#include <testsuite_hooks.h>
void test04()
{
using namespace std;
typedef ostreambuf_iterator<char> iterator_type;
bool test __attribute__((unused)) = true;
tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
locale loc_c = locale::classic();
locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
VERIFY( loc_fr != loc_c );
const string empty;
ostringstream oss;
oss.imbue(loc_fr);
const time_put<char>& tim_put = use_facet<time_put<char> >(oss.getloc());
iterator_type os_it04 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'a');
string result4 = oss.str();
VERIFY( result4 == "dim" );
oss.str(empty); iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
string result27 = oss.str(); oss.str(empty); iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
string result28 = oss.str(); oss.str(empty);
iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x', 'E');
string result37 = oss.str(); oss.str(empty);
iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X', 'E');
string result38 = oss.str(); }
int main()
{
test04();
return 0;
}