Skip to content

Commit 66ab4b8

Browse files
authored
[flang] Re-enable date_and_time intrinsic test (NFC) (#104967)
1 parent 26ae316 commit 66ab4b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

flang/unittests/Runtime/Time.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef __clang__ // 16.0.3 lacks <charconv>
10-
119
#include "gtest/gtest.h"
1210
#include "flang/Runtime/time-intrinsic.h"
1311
#include <algorithm>
@@ -89,6 +87,7 @@ TEST(TimeIntrinsics, SystemClock) {
8987
}
9088

9189
TEST(TimeIntrinsics, DateAndTime) {
90+
errno = 0;
9291
constexpr std::size_t bufferSize{16};
9392
std::string date(bufferSize, 'Z'), time(bufferSize, 'Z'),
9493
zone(bufferSize, 'Z');
@@ -163,4 +162,3 @@ TEST(TimeIntrinsics, DateAndTime) {
163162
EXPECT_LE(minutes, 59);
164163
}
165164
}
166-
#endif // __clang__

0 commit comments

Comments
 (0)