• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include <__config>
11 #include "test_macros.h"
12 
13 #ifndef TEST_STD_VER
14 #error TEST_STD_VER must be defined
15 #endif
16 
17 #ifndef TEST_NOEXCEPT
18 #error TEST_NOEXCEPT must be defined
19 #endif
20 
21 #ifndef LIBCPP_ASSERT
22 #error LIBCPP_ASSERT must be defined
23 #endif
24 
25 #ifndef LIBCPP_STATIC_ASSERT
26 #error LIBCPP_STATIC_ASSERT must be defined
27 #endif
28 
test_noexcept()29 void test_noexcept() TEST_NOEXCEPT
30 {
31 }
32 
main(int,char **)33 int main(int, char**)
34 {
35     test_noexcept();
36 
37     return 0;
38 }
39