blob: ed49ac28693e9d2e1992604361285a7f3fef642d [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// REQUIRES: libcpp-has-no-thread-unsafe-c-functions
#include <ctime>
int main(int, char**) {
// asctime is not thread-safe.
std::time_t t = 0;
std::asctime(&t);
return 0;
}