Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions flang/unittests/Runtime/Time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

#ifndef __clang__ // 16.0.3 lacks <charconv>

#include "gtest/gtest.h"
#include "flang/Runtime/time-intrinsic.h"
#include <algorithm>
Expand Down Expand Up @@ -89,6 +87,7 @@ TEST(TimeIntrinsics, SystemClock) {
}

TEST(TimeIntrinsics, DateAndTime) {
errno = 0;
constexpr std::size_t bufferSize{16};
std::string date(bufferSize, 'Z'), time(bufferSize, 'Z'),
zone(bufferSize, 'Z');
Expand Down Expand Up @@ -163,4 +162,3 @@ TEST(TimeIntrinsics, DateAndTime) {
EXPECT_LE(minutes, 59);
}
}
#endif // __clang__