2 //===----------------------------------------------------------------------===//
4 // The LLVM Compiler Infrastructure
6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: libcpp-no-exceptions
12 // Test that defining _LIBCPP_DEBUG_USE_EXCEPTIONS causes _LIBCPP_ASSERT
13 // to throw on failure.
15 #define _LIBCPP_DEBUG 1
16 #define _LIBCPP_DEBUG_USE_EXCEPTIONS
20 #include <type_traits>
27 _LIBCPP_ASSERT(false, "foo");