blob: c9e55c8fd3a69eb45795a01b1249af9d154c1537 [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() {
// localtime is not thread-safe.
std::time_t t = 0;
std::localtime(&t);
}