global_settings::instance().ash_nazg = true;
void test(){    warning() << "Warning from main()." << LMI_FLUSH;    std::cout        << "Should be 0 1 0 1:\n"        << calendar_date(1900,  1,  1).is_leap_year() << '\n'        << calendar_date(2000,  1,  1).is_leap_year() << '\n'        << calendar_date(2003,  1,  1).is_leap_year() << '\n'        << calendar_date(2004,  1,  1).is_leap_year() << '\n'        << std::endl        ;    Timer timer;    IllustrationDocument document("foo.ill");    warning() << "Read input file: " << timer.Stop().Report() << std::flush;    timer.Reset().Start();    IllusInputParms input = *document.input_parameters();    AccountValue av(&input);    av.SetDebugFilename("foo.debug");    av.RunAV();    warning() << "Calculate: " << timer.Stop().Report() << std::flush;    timer.Reset().Start();    TLedger ledger = av.GetLedgerValues();    std::ofstream ofs("eraseme.xml", std::ios_base::out | std::ios_base::trunc);    ledger.write(ofs);    warning() << "Generate and write xml output: " << timer.Stop().Report() << std::flush;    ledger.Spew(std::cerr);}