xref: /minix3/external/bsd/libc++/dist/libcxx/test/std/utilities/date.time/localtime.thread-unsafe.fail.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
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     // localtime is not thread-safe.
16     std::time_t t = 0;
17     std::localtime(&t);
18 }
19