diff options
Diffstat (limited to 'test/std/utilities/time/time.point/time.point.cons/convert.pass.cpp')
| -rw-r--r-- | test/std/utilities/time/time.point/time.point.cons/convert.pass.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/std/utilities/time/time.point/time.point.cons/convert.pass.cpp b/test/std/utilities/time/time.point/time.point.cons/convert.pass.cpp index 6cd7dcb7d2f4a..33e349fe8941c 100644 --- a/test/std/utilities/time/time.point/time.point.cons/convert.pass.cpp +++ b/test/std/utilities/time/time.point/time.point.cons/convert.pass.cpp @@ -17,6 +17,8 @@ #include <chrono> #include <cassert> +#include "test_macros.h" + int main() { typedef std::chrono::system_clock Clock; @@ -27,7 +29,7 @@ int main() std::chrono::time_point<Clock, Duration1> t1 = t2; assert(t1.time_since_epoch() == Duration1(3000)); } -#if _LIBCPP_STD_VER > 11 +#if TEST_STD_VER > 11 { constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); constexpr std::chrono::time_point<Clock, Duration1> t1 = t2; |
