[libcxx-commits] [clang] [libcxx] [CodeGen] Added '*' to internal linkage types (PR #220864)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 20 02:56:34 PDT 2026


================
@@ -18,6 +18,15 @@
 #include <typeindex>
 #include <vector>
 
+#include "test_macros.h"
+
+// Itanium ABI implementations prefix the RTTI name of a type with internal linkage with a '*',
+// which lets this implementation distinguish between two internally linked types
+#if !defined(_LIBCPP_ABI_MICROSOFT) &&                                                                                 \
+    (defined(TEST_COMPILER_GCC) || (defined(TEST_CLANG_VER) && TEST_CLANG_VER >= 2400))
+#  define INTERNAL_LINKAGE_RTTI_NAMES_ARE_MARKED
+#endif
----------------
philnik777 wrote:

I think we should just XFAIL the test for older compilers instead.

https://github.com/llvm/llvm-project/pull/220864


More information about the libcxx-commits mailing list