blob: c9e55c8fd3a69eb45795a01b1249af9d154c1537 [file] [log] [blame]
Ed Schouten323ade32015-06-24 08:44:38 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// REQUIRES: libcpp-has-no-thread-unsafe-c-functions
11
12#include <ctime>
13
14int main() {
15 // localtime is not thread-safe.
16 std::time_t t = 0;
17 std::localtime(&t);
18}