clang/test/CodeGenCXX/mangle-cxx2a.cpp
raw| 1 | // RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-linux-gnu -std=c++2a | FileCheck %s |
| 2 | |
| 3 | namespace spaceship { |
| 4 | struct X {}; |
| 5 | struct Y {}; |
| 6 | int operator<=>(X, Y); |
| 7 | |
| 8 | // CHECK-LABEL: define {{.*}} @_ZN9spaceship1fIiEEvDTcmltcvNS_1YE_EcvNS_1XE_EcvT__EE |
| 9 | template<typename T> void f(decltype(Y() < X(), T()) x) {} |
| 10 | template void f<int>(int); |
| 11 | } |