-// { dg-do run }
-// { dg-options "-std=gnu++1y" }
+// { dg-do run { target c++14 } }
-// Copyright (C) 2013-2014 Free Software Foundation, Inc.
+// Copyright (C) 2013-2024 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
VERIFY( workday == std::chrono::hours(8) );
auto fworkday = 8.0h;
VERIFY( (fworkday == std::chrono::duration<long double, std::ratio<3600,1>>(8.0L)) );
+ auto immediate = 0s;
+ VERIFY( immediate == std::chrono::seconds(0) );
+ auto minute_ago = -1min;
+ VERIFY( minute_ago == std::chrono::minutes(-1) );
+ auto separated = 1'000'000s;
+ VERIFY( separated == std::chrono::seconds(1'000'000) );
}
int