1 //===----------------------------------------------------------------------===//
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
main()14 int main() {
15 // gmtime is not thread-safe.
16 std::time_t t = 0;
17 std::gmtime(&t);
18 }
19