| //===----------------------------------------------------------------------===// | |
| // | |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |
| // See https://llvm.org/LICENSE.txt for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| // | |
| //===----------------------------------------------------------------------===// | |
| // REQUIRES: std-at-least-c++26 | |
| // REQUIRES: host-has-lldb | |
| // The Android libc++ tests are run on a non-Android host, connected to an Android device over adb. | |
| // UNSUPPORTED: android | |
| // UNSUPPORTED: availability-debugging-missing | |
| // XFAIL: LIBCXX-PICOLIBC-FIXME | |
| // Debugging 32-bit applications using 64-bit debugger doesn't work very well. | |
| // XFAIL: target=i686-w64-windows-gnu | |
| // RUN: %{cxx} %{flags} %s %{compile_flags} %{link_flags} -o %t.exe -g | |
| // RUN: %if darwin %{ codesign --entitlements %S/entitlements-apple.plist -f -s - %t.exe %} | |
| // RUN: %{exec} "%{lldb}" %t.exe -o "command script import %S/breakpoint__lldb.py" | |
| // <debugging> | |
| // void breakpoint() noexcept; | |
| #include <debugging> | |
| #include "test_macros.h" | |
| int main(int, char**) { | |
| ASSERT_SAME_TYPE(void, decltype(std::breakpoint())); | |
| static_assert(noexcept(std::breakpoint())); | |
| std::breakpoint(); | |
| return 0; | |
| } |