| //===----------------------------------------------------------------------===// | |
| // | |
| // 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-gdb-with-python | |
| // UNSUPPORTED: availability-debugging-missing | |
| // UNSUPPORTED: android | |
| // LeakSanitizer does not work under ptrace | |
| // UNSUPPORTED: asan | |
| // GDB doesn't support PDB debug info format | |
| // UNSUPPORTED: msvc | |
| // https://sourceware.org/bugzilla/show_bug.cgi?id=22645 | |
| // UNSUPPORTED: target=arm{{.*}} | |
| // XFAIL: LIBCXX-PICOLIBC-FIXME | |
| // RUN: %{cxx} %{flags} %s %{compile_flags} %{link_flags} -o %t.exe -g | |
| // RUN: %{exec} %{gdb} %t.exe -ex "source %S/breakpoint__gdb.py" | |
| // <debugging> | |
| // void breakpoint() noexcept; | |
| #include <debugging> | |
| int main(int, char**) { | |
| static_assert(noexcept(std::breakpoint())); | |
| std::breakpoint(); | |
| return 0; | |
| } |