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

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 28 03:33:31 PDT 2026


================
@@ -6,40 +6,52 @@
 //
 //===----------------------------------------------------------------------===//
 
+// Test that the non-unique (strcmp-based) type_info comparison considers two copies of the
+// RTTI for the same type to be equal. Two copies are created by giving a type hidden visibility
+// and using it from both a shared library and the executable that loads it.
+
 // UNSUPPORTED: no-rtti
 
-// RUN: %{cxx} %s %{flags} %{compile_flags} -c -o %t.tu1.o -DTU1 -D_LIBCPP_TYPEINFO_COMPARISON_IMPLEMENTATION=2
-// RUN: %{cxx} %s %{flags} %{compile_flags} -c -o %t.tu2.o -DTU2 -D_LIBCPP_TYPEINFO_COMPARISON_IMPLEMENTATION=2
+// Windows needs explicit symbol exports
+// UNSUPPORTED: windows
+
+// Android executable looks for the library at its host path, which doesn't exist on the device
----------------
philnik777 wrote:

This looks like a bug to me.

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


More information about the libcxx-commits mailing list