• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // <new> feature macros
11 
12 /*  Constant                                    Value
13     __cpp_lib_destroying_delete                 201806L
14     __cpp_lib_hardware_interference_size        201703L
15     __cpp_lib_launder                           201606L
16 
17 */
18 
19 #include <new>
20 #include <cassert>
21 #include "test_macros.h"
22 
main()23 int main()
24 {
25 //  ensure that the macros that are supposed to be defined in <new> are defined.
26 
27 /*
28 #if !defined(__cpp_lib_fooby)
29 # error "__cpp_lib_fooby is not defined"
30 #elif __cpp_lib_fooby < 201606L
31 # error "__cpp_lib_fooby has an invalid value"
32 #endif
33 */
34 }
35