forked from OSchip/llvm-project
19 lines
520 B
C++
19 lines
520 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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() {
|
|
// ctime is not thread-safe.
|
|
std::time_t t = 0;
|
|
std::ctime(&t);
|
|
}
|