diff options
| author | Nikolas Klauser <nikolasklauser@berlin.de> | 2025-11-12 10:12:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-12 10:12:13 +0100 |
| commit | a8e058a590842d745106cdffc74a7020c0f85cd4 (patch) | |
| tree | 1fe04af1de48967a824ca0ee73e0f2b59324901f /libcxxabi | |
| parent | 10e97641f53a6eba5ad9430dc25f1ad6e5e8abed (diff) | |
[libc++abi] Add a test to ensure the abi namespace alias is declared correctly (#167485)
Diffstat (limited to 'libcxxabi')
| -rw-r--r-- | libcxxabi/test/namespace.compile.pass.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 <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; |
