Update std-test.cc

copypasta error
This commit is contained in:
Alex Guteniev 2023-08-14 19:27:21 +03:00 committed by GitHub
parent 4499c61337
commit f45cfad7e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ TEST(std_test, format_atomic_flag) {
(void) f.test_and_set();
EXPECT_EQ(fmt::format("{}", f), "true");
const std::atomic<bool> cf = ATOMIC_FLAG_INIT;
const std::atomic_flag cf = ATOMIC_FLAG_INIT;
EXPECT_EQ(fmt::format("{}", cf), "false");
}
#endif // defined(__cpp_lib_atomic_flag_test) && __cpp_lib_atomic_flag_test >= 201907L