From 770da82005cebb3fa15ef36ea7d0d5f729cd75f0 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Tue, 11 Nov 2025 11:08:33 +0100 Subject: [PATCH] [libc++abi] Add a test to ensure the abi namespace alias is declared correctly --- libcxxabi/test/namespace.compile.pass.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libcxxabi/test/namespace.compile.pass.cpp 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 + +// Make sure the `abi` namespace already exists +namespace abi_should_exist = abi; + +// Make sure `abi` is an alias for `__cxxabiv1` +namespace abi = __cxxabiv1;