From a8e058a590842d745106cdffc74a7020c0f85cd4 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Wed, 12 Nov 2025 10:12:13 +0100 Subject: [PATCH] [libc++abi] Add a test to ensure the abi namespace alias is declared correctly (#167485) --- 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 000000000000..076c75c63571 --- /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;