Skip to content

Conversation

@philnik777
Copy link
Contributor

No description provided.

@philnik777 philnik777 marked this pull request as ready for review November 12, 2025 09:12
@philnik777 philnik777 requested a review from a team as a code owner November 12, 2025 09:12
@philnik777 philnik777 merged commit a8e058a into llvm:main Nov 12, 2025
81 checks passed
@philnik777 philnik777 deleted the cxxabi_add_namespace_test branch November 12, 2025 09:12
@llvmbot llvmbot added the libc++abi libc++abi C++ Runtime Library. Not libc++. label Nov 12, 2025
@llvmbot
Copy link
Member

llvmbot commented Nov 12, 2025

@llvm/pr-subscribers-libcxxabi

Author: Nikolas Klauser (philnik777)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/167485.diff

1 Files Affected:

  • (added) libcxxabi/test/namespace.compile.pass.cpp (+15)
diff --git a/libcxxabi/test/namespace.compile.pass.cpp b/libcxxabi/test/namespace.compile.pass.cpp
new file mode 100644
index 0000000000000..076c75c635718
--- /dev/null
+++ b/libcxxabi/test/namespace.compile.pass.cpp
@@ -0,0 +1,15 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include <cxxabi.h>
+
+// Make sure the `abi` namespace already exists
+namespace abi_should_exist = abi;
+
+// Make sure `abi` is an alias for `__cxxabiv1`
+namespace abi = __cxxabiv1;

git-crd pushed a commit to git-crd/crd-llvm-project that referenced this pull request Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libc++abi libc++abi C++ Runtime Library. Not libc++.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants