blob: 3a9749e21c528e2d8740659fc747f47b30907892 [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 // asctime is not thread-safe.
16 std::time_t t = 0;
17 std::asctime(&t);
18}