39 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8//9// Test the "test_macros.h" header.10 11#include "test_macros.h"12 13#ifndef TEST_STD_VER14#error TEST_STD_VER must be defined15#endif16 17#ifndef TEST_NOEXCEPT18#error TEST_NOEXCEPT must be defined19#endif20 21#ifndef LIBCPP_ASSERT22#error LIBCPP_ASSERT must be defined23#endif24 25#ifndef LIBCPP_STATIC_ASSERT26#error LIBCPP_STATIC_ASSERT must be defined27#endif28 29void test_noexcept() TEST_NOEXCEPT30{31}32 33int main(int, char**)34{35 test_noexcept();36 37 return 0;38}39