Ed Schouten | 323ade3 | 2015-06-24 08:44:38 +0000 | [diff] [blame] | 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 | |
| 14 | int main() { |
| 15 | // asctime is not thread-safe. |
| 16 | std::time_t t = 0; |
| 17 | std::asctime(&t); |
| 18 | } |