1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // This test breaks when enabling LSV. 10 // UNSUPPORTED: clang-modules-build 11 12 // UNSUPPORTED: c++03, c++11, c++14 13 14 // Make sure that <ctime> can be included even when _XOPEN_SOURCE is defined. 15 // This used to trigger some bug in Apple SDKs, since timespec_get was not 16 // defined in <time.h> but we tried using it from <ctime>. 17 // See https://llvm.org/PR47208 for details. 18 19 // ADDITIONAL_COMPILE_FLAGS: -D_XOPEN_SOURCE=500 20 21 #include <ctime> 22