[libcxx-commits] [clang] [libcxxabi] [llvm] [Clang] Mangling of pack indexing type and expression for itanium (PR #123513)
Younan Zhang via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jan 26 17:56:27 PST 2025
================
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-linux-gnu -std=c++2a | FileCheck %s
+
+namespace spaceship {
+ struct X {};
+ struct Y {};
+ int operator<=>(X, Y);
+
+ // CHECK-LABEL: define {{.*}} @_ZN9spaceship1fIiEEvDTcmltcvNS_1YE_EcvNS_1XE_EcvT__EE
+ template<typename T> void f(decltype(Y() < X(), T()) x) {}
+ template void f<int>(int);
+}
----------------
zyn0217 wrote:
This isn't related to what this patch proposes or am I missing something?
https://github.com/llvm/llvm-project/pull/123513
More information about the libcxx-commits
mailing list