Move test/std/utilities/date.time to proper stable name utilities/time/date.time
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@245877 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// REQUIRES: libcpp-has-no-thread-unsafe-c-functions
|
||||
|
||||
#include <ctime>
|
||||
|
||||
int main() {
|
||||
// asctime is not thread-safe.
|
||||
std::time_t t = 0;
|
||||
std::asctime(&t);
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// REQUIRES: libcpp-has-no-thread-unsafe-c-functions
|
||||
|
||||
#include <ctime>
|
||||
|
||||
int main() {
|
||||
// ctime is not thread-safe.
|
||||
std::time_t t = 0;
|
||||
std::ctime(&t);
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// REQUIRES: libcpp-has-no-thread-unsafe-c-functions
|
||||
|
||||
#include <ctime>
|
||||
|
||||
int main() {
|
||||
// gmtime is not thread-safe.
|
||||
std::time_t t = 0;
|
||||
std::gmtime(&t);
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// REQUIRES: libcpp-has-no-thread-unsafe-c-functions
|
||||
|
||||
#include <ctime>
|
||||
|
||||
int main() {
|
||||
// localtime is not thread-safe.
|
||||
std::time_t t = 0;
|
||||
std::localtime(&t);
|
||||
}
|
Reference in New Issue
Block a user