//===-- Unittests for sched -----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "test/UnitTest/Test.h" #include template struct SameType { static constexpr bool value = false; }; template struct SameType { static constexpr bool value = true; }; TEST(LlvmLibcSchedTest, HeaderInterface) { // Use unevaluated contexts to verify the public macro declarations without // requiring this include test to link the helper entrypoints. static_assert(SameType::value, ""); static_assert(SameType::value, ""); static_assert(SameType::value, ""); static_assert(SameType::value, ""); using SchedGetSchedulerT = int(pid_t) noexcept; using SchedSetSchedulerT = int(pid_t, int, const struct sched_param *) noexcept; static_assert( SameType::value, ""); static_assert( SameType::value, ""); }