Don't use the form '2017y' in tests, since some gcc versions don't allow it

llvm-svn: 350930
This commit is contained in:
Marshall Clow 2019-01-11 15:45:56 +00:00
parent 5c08881343
commit 80378fd38b
2 changed files with 6 additions and 6 deletions

View File

@ -40,9 +40,9 @@ void RunTheExample()
{
using namespace std::chrono;
static_assert(year_month_day{local_days{2017y/January/0}} == 2016y/December/31);
static_assert(year_month_day{local_days{2017y/January/31}} == 2017y/January/31);
static_assert(year_month_day{local_days{2017y/January/32}} == 2017y/February/1);
static_assert(year_month_day{local_days{year{2017}/January/0}} == year{2016}/December/31);
static_assert(year_month_day{local_days{year{2017}/January/31}} == year{2017}/January/31);
static_assert(year_month_day{local_days{year{2017}/January/32}} == year{2017}/February/1);
}
int main()

View File

@ -40,9 +40,9 @@ void RunTheExample()
{
using namespace std::chrono;
static_assert(year_month_day{sys_days{2017y/January/0}} == 2016y/December/31);
static_assert(year_month_day{sys_days{2017y/January/31}} == 2017y/January/31);
static_assert(year_month_day{sys_days{2017y/January/32}} == 2017y/February/1);
static_assert(year_month_day{sys_days{year{2017}/January/0}} == year{2016}/December/31);
static_assert(year_month_day{sys_days{year{2017}/January/31}} == year{2017}/January/31);
static_assert(year_month_day{sys_days{year{2017}/January/32}} == year{2017}/February/1);
}
int main()