• 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 // This test ensures that assertions are enabled by default when the debug mode is enabled.
10 
11 // REQUIRES: libcpp-has-debug-mode
12 
13 #include <version>
14 
15 #if !defined(_LIBCPP_ENABLE_ASSERTIONS) || _LIBCPP_ENABLE_ASSERTIONS == 0
16 #   error "Assertions should be enabled automatically when the debug mode is enabled"
17 #endif
18