Skip to content

Commit a8e058a

Browse files
authored
[libc++abi] Add a test to ensure the abi namespace alias is declared correctly (#167485)
1 parent 10e9764 commit a8e058a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#include <cxxabi.h>
10+
11+
// Make sure the `abi` namespace already exists
12+
namespace abi_should_exist = abi;
13+
14+
// Make sure `abi` is an alias for `__cxxabiv1`
15+
namespace abi = __cxxabiv1;

0 commit comments

Comments
 (0)