[libcxx-commits] [libcxx] WIP - [libc++][debugging] P2546R5: Debugging support & P2810R4: `is_debugger_present` `is_replaceable` (PR #81447)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Mon May 20 10:55:02 PDT 2024
================
@@ -0,0 +1,32 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20, c++23
+// REQUIRES: host-has-dbx
+
+// RUN: %{cxx} %{flags} %s -o %t.exe %{compile_flags} -g %{link_flags}
+// RUN: "%{dbx}" %t.exe -c %S/breakpoint__dbx.cmd \
+// RUN: | grep -qEf %S/breakpoint__dbx.grep
+
+// <debugging>
+
+// void breakpoint() noexcept;
+
+#include <debugging>
+
+void test() {
+ static_assert(noexcept(std::breakpoint()));
----------------
mordante wrote:
I prefer to test the `noexcept` one time in a separate test.
Since these tests do not use `constexpr` there is no reason for the `test()` indirection.
https://github.com/llvm/llvm-project/pull/81447
More information about the libcxx-commits
mailing list