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// Test the "test_macros.h" header.
10
11// XFAIL: FROZEN-CXX03-HEADERS-FIXME
12
13#include <__config>
14#include "test_macros.h"
15
16#ifndef TEST_STD_VER
17#error TEST_STD_VER must be defined
18#endif
19
20#ifndef TEST_NOEXCEPT
21#error TEST_NOEXCEPT must be defined
22#endif
23
24#ifndef LIBCPP_ASSERT
25#error LIBCPP_ASSERT must be defined
26#endif
27
28#ifndef LIBCPP_STATIC_ASSERT
29#error LIBCPP_STATIC_ASSERT must be defined
30#endif
31
32void test_noexcept() TEST_NOEXCEPT
33{
34}
35
36int main(int, char**)
37{
38 test_noexcept();
39
40 return 0;
41}
42

source code of libcxx/test/selftest/test_macros.pass.cpp