blob: 3a9749e21c528e2d8740659fc747f47b30907892 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// REQUIRES: libcpp-has-no-thread-unsafe-c-functions
#include <ctime>
int main() {
// asctime is not thread-safe.
std::time_t t = 0;
std::asctime(&t);
}